]> Cypherpunks repositories - gostls13.git/log
gostls13.git
13 years agohttp: avoid name error in test
Russ Cox [Wed, 2 Nov 2011 01:45:37 +0000 (21:45 -0400)]
http: avoid name error in test

R=adg
CC=golang-dev
https://golang.org/cl/5316070

13 years agogofix: error fix
Russ Cox [Wed, 2 Nov 2011 01:45:21 +0000 (21:45 -0400)]
gofix: error fix

To make the error fix more useful, expand typecheck to gather
more information about struct fields, typecheck range statements,
typecheck indirect and index of named types, and collect information
about assignment conversions.

Also, change addImport to rename top-level uses of a to-be-imported
identifier to avoid conflicts.  This duplicated some of the code in
the url fix, so that fix is now shorter.

R=iant, r, r
CC=golang-dev
https://golang.org/cl/5305066

13 years agospec: add error
Russ Cox [Wed, 2 Nov 2011 01:45:02 +0000 (21:45 -0400)]
spec: add error

R=golang-dev, dsymonds, r, r
CC=golang-dev
https://golang.org/cl/5308072

13 years agotag weekly.2011-11-01
Andrew Gerrand [Wed, 2 Nov 2011 01:40:35 +0000 (10:40 +0900)]
tag weekly.2011-11-01

R=golang-dev, rsc, dsymonds
CC=golang-dev
https://golang.org/cl/5305085

13 years agoweekly.2011-11-01 weekly.2011-11-01
Andrew Gerrand [Wed, 2 Nov 2011 01:37:01 +0000 (10:37 +0900)]
weekly.2011-11-01

R=rsc, r
CC=golang-dev
https://golang.org/cl/5336044

13 years agohtml: stop at scope marker node when generating implied </a> tags
Andrew Balholm [Wed, 2 Nov 2011 00:47:05 +0000 (11:47 +1100)]
html: stop at scope marker node when generating implied </a> tags

A <a> tag generates implied end tags for any open <a> elements.
But it shouldn't do that when it is inside a table cell the the open <a>
is outside the table.
So stop the search for an open <a> when we reach a scope marker node.

Pass tests1.dat, test 78:
<a href="blah">aba<table><tr><td><a href="foo">br</td></tr>x</table>aoe

| <html>
|   <head>
|   <body>
|     <a>
|       href="blah"
|       "abax"
|       <table>
|         <tbody>
|           <tr>
|             <td>
|               <a>
|                 href="foo"
|                 "br"
|       "aoe"

Also pass test 79:
<table><a href="blah">aba<tr><td><a href="foo">br</td></tr>x</table>aoe

R=nigeltao
CC=golang-dev
https://golang.org/cl/5320063

13 years agohtml: refactor the blacklist for the "render and re-parse" test.
Nigel Tao [Tue, 1 Nov 2011 22:42:25 +0000 (09:42 +1100)]
html: refactor the blacklist for the "render and re-parse" test.

R=andybalholm
CC=golang-dev, mikesamuel
https://golang.org/cl/5331056

13 years agotextproto: prevent long lines in HTTP headers from causing HTTP 400 responses.
Mike Solomon [Tue, 1 Nov 2011 17:31:29 +0000 (10:31 -0700)]
textproto: prevent long lines in HTTP headers from causing HTTP 400 responses.

This fixes the issue without an extra copy in the average case.

R=golang-dev, ality, bradfitz
CC=golang-dev
https://golang.org/cl/5272049

13 years agodoc/Makefile: add 'all' rule to build all docs
Rob Pike [Tue, 1 Nov 2011 16:45:04 +0000 (09:45 -0700)]
doc/Makefile: add 'all' rule to build all docs

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5334044

13 years agogc: test + fix escape analysis bug
Russ Cox [Tue, 1 Nov 2011 15:02:43 +0000 (11:02 -0400)]
gc: test + fix escape analysis bug

R=lvd
CC=golang-dev
https://golang.org/cl/5333049

13 years agodoc: refer to tour.golang.org instead of go-tour.appspot.com
Andrew Gerrand [Tue, 1 Nov 2011 07:09:29 +0000 (16:09 +0900)]
doc: refer to tour.golang.org instead of go-tour.appspot.com

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5331055

13 years agodoc: fix typo in spec example code comment
Charles L. Dorian [Tue, 1 Nov 2011 06:13:33 +0000 (15:13 +0900)]
doc: fix typo in spec example code comment

R=r, golang-dev, adg
CC=golang-dev
https://golang.org/cl/5308071

13 years agogo spec: introduce rune type
Robert Griesemer [Tue, 1 Nov 2011 05:09:22 +0000 (01:09 -0400)]
go spec: introduce rune type

R=r, iant, rsc, r
CC=golang-dev
https://golang.org/cl/5293048

13 years agorpc: avoid infinite loop on input error
Russ Cox [Tue, 1 Nov 2011 04:29:41 +0000 (00:29 -0400)]
rpc: avoid infinite loop on input error

Fixes #1828.
Fixes #2179.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5305084

13 years agogopack: change archive file name length back to 16
Russ Cox [Tue, 1 Nov 2011 04:29:16 +0000 (00:29 -0400)]
gopack: change archive file name length back to 16

This CL grew the archive file name length from 16 to 64:

        changeset:   909:58574851d792
        user:        Russ Cox <rsc@golang.org>
        date:        Mon Oct 20 13:53:56 2008 -0700

Back then, every x.go file in a package became an x.6 file
in the archive.  It was important to be able to allow the
use of long Go source file names, hence the increase in size.

Today, all Go source files compile into a single _go_.6 file
regardless of their names, so the archive file name length
no longer needs to be long.  The longer name causes some
problems on Plan 9, where the native archive format is the
same but with 16-byte names, so revert back to 16.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5333050

13 years agoos: do not interpret 0-length read as EOF
Russ Cox [Tue, 1 Nov 2011 04:17:05 +0000 (00:17 -0400)]
os: do not interpret 0-length read as EOF

Fixes #2402.

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5298081

13 years agohtml: process </td> tags; foster parent at most one node per token
Andrew Balholm [Tue, 1 Nov 2011 00:42:54 +0000 (11:42 +1100)]
html: process </td> tags; foster parent at most one node per token

Correctly close table cell when </td> is read.

Because of reconstructing the active formatting elements, more than one
node may be created when reading a single token.
If both nodes are foster parented, they will be siblings, but the first
node should be the parent of the second.

Pass tests1.dat, test 77:
<a href="blah">aba<table><a href="foo">br<tr><td></td></tr>x</table>aoe

| <html>
|   <head>
|   <body>
|     <a>
|       href="blah"
|       "aba"
|       <a>
|         href="foo"
|         "br"
|       <a>
|         href="foo"
|         "x"
|       <table>
|         <tbody>
|           <tr>
|             <td>
|     <a>
|       href="foo"
|       "aoe"

R=nigeltao
CC=golang-dev
https://golang.org/cl/5305074

13 years agotemplate: fix error checking on execute without parse
Scott Lawrence [Mon, 31 Oct 2011 23:07:17 +0000 (16:07 -0700)]
template: fix error checking on execute without parse

Fixed error checking in exec.go to give a sensible error message when
execution is attempted before a successful parse (rather than an
outright panic).

R=r
CC=golang-dev
https://golang.org/cl/5306065

13 years agopkg: minor cleanup
Russ Cox [Mon, 31 Oct 2011 21:53:39 +0000 (17:53 -0400)]
pkg: minor cleanup

remove some redundant .String()
change variable name to make it os.Error-proof

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5302075

13 years agotest: make bug107 os.Error-proof
Russ Cox [Mon, 31 Oct 2011 21:50:38 +0000 (17:50 -0400)]
test: make bug107 os.Error-proof

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5306087

13 years agoruntime/pprof: document OS X being broken
Russ Cox [Mon, 31 Oct 2011 21:50:25 +0000 (17:50 -0400)]
runtime/pprof: document OS X being broken

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5307078

13 years agotime: add RFC1123 with numeric timezone format
Scott Lawrence [Mon, 31 Oct 2011 19:59:06 +0000 (12:59 -0700)]
time: add RFC1123 with numeric timezone format

Fixes #841.

R=rsc, r
CC=golang-dev
https://golang.org/cl/5322058

13 years agomath: Improved accuracy for Sin and Cos.
Charles L. Dorian [Mon, 31 Oct 2011 18:26:05 +0000 (14:26 -0400)]
math: Improved accuracy for Sin and Cos.

Fixes #1564.

R=rsc, dchest
CC=golang-dev
https://golang.org/cl/5320056

13 years agojson: Properly handle nil slices.
Alexander Reece [Mon, 31 Oct 2011 17:59:23 +0000 (13:59 -0400)]
json: Properly handle nil slices.

Marshal nil slices as null and parse null value as a nil slice.
Fixes #2278.

R=rsc
CC=golang-dev
https://golang.org/cl/5257053

13 years agoA+C: Alexander Reece (individual CLA)
Russ Cox [Mon, 31 Oct 2011 17:59:04 +0000 (13:59 -0400)]
A+C: Alexander Reece (individual CLA)

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5297072

13 years agosyscall: fix Await msg on Plan 9
Andrey Mirtchovski [Mon, 31 Oct 2011 17:34:59 +0000 (13:34 -0400)]
syscall: fix Await msg on Plan 9

Plan 9's await() returns '' for nil exit status but programs, most notably gotest,
see this as an error return.

R=rsc
CC=golang-dev
https://golang.org/cl/5305079

13 years agogc: clean up printing.
Luuk van Dijk [Mon, 31 Oct 2011 17:09:40 +0000 (18:09 +0100)]
gc: clean up printing.

Got rid of all the magic mystery globals. Now
for %N, %T, and %S, the flags +,- and # set a sticky
debug, sym and export mode, only visible in the new fmt.c.
Default is error mode. Handle h and l flags consistently with
the least side effects, so we can now change
things without worrying about unrelated things
breaking.

fixes #2361

R=rsc
CC=golang-dev
https://golang.org/cl/5316043

13 years agonet: Plan 9 fixes
Fazlul Shahriar [Mon, 31 Oct 2011 15:47:44 +0000 (11:47 -0400)]
net: Plan 9 fixes

Makes all tests pass.

R=rsc
CC=golang-dev
https://golang.org/cl/5320041

13 years agomisc/emacs/go-lang.el: Fix restoration of multiple windows in a frame after gofmt
Jan Newmarch [Mon, 31 Oct 2011 15:33:14 +0000 (11:33 -0400)]
misc/emacs/go-lang.el: Fix restoration of multiple windows in a frame after gofmt
If a frame has multiple windows then the windows must all be restored
after gofmt has finished and the old windows must be restored.
Before this fix, only the Go code edit window would be left.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5280050

13 years agoexp/norm: fixed bug that creeped in with moving to the new
Marcel van Lohuizen [Mon, 31 Oct 2011 09:58:04 +0000 (10:58 +0100)]
exp/norm: fixed bug that creeped in with moving to the new
regexp, which caused the last line of a test block to be ignored.

R=r, rsc
CC=golang-dev
https://golang.org/cl/5177052

13 years agoexp/ssh: fix length header leaking into channel data streams.
Dave Cheney [Sat, 29 Oct 2011 18:22:30 +0000 (14:22 -0400)]
exp/ssh: fix length header leaking into channel data streams.

The payload of a data message is defined as an SSH string type,
which uses the first four bytes to encode its length. When channelData
and channelExtendedData were added I defined Payload as []byte to
be able to use it directly without a string to []byte conversion. This
resulted in the length data leaking into the payload data.

This CL fixes the bug, and restores agl's original fast path code.

Additionally, a bug whereby s.lock was not released if a packet arrived
for an invalid channel has been fixed.

Finally, as they were no longer used, I have removed
the channelData and channelExtedendData structs.

R=agl, rsc
CC=golang-dev
https://golang.org/cl/5330053

13 years agohtml: adjust bookmark in "adoption agency" algorithm
Andrew Balholm [Fri, 28 Oct 2011 23:51:59 +0000 (10:51 +1100)]
html: adjust bookmark in "adoption agency" algorithm

In the adoption agency algorithm, the formatting element is sometimes
removed from the list of active formatting elements and reinserted at a later index.
In that case, the bookmark showing where it is to be reinserted needs to be moved,
so that its position relative to its neighbors remains the same
(and also so that it doesn't become out of bounds).

Pass tests1.dat, test 70:
<DIV> abc <B> def <I> ghi <P> jkl </B>

| <html>
|   <head>
|   <body>
|     <div>
|       " abc "
|       <b>
|         " def "
|         <i>
|           " ghi "
|       <i>
|         <p>
|           <b>
|             " jkl "

Also pass tests through test 76:
<test attribute---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->

R=nigeltao
CC=golang-dev
https://golang.org/cl/5322052

13 years agohtml: don't run "adoption agency" on elements that aren't in scope.
Andrew Balholm [Fri, 28 Oct 2011 05:04:58 +0000 (16:04 +1100)]
html: don't run "adoption agency" on elements that aren't in scope.

Pass tests1.dat, test 55:
<!DOCTYPE html><font><table></font></table></font>

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <font>
|       <table>

Also pass tests through test 69:
<DIV> abc <B> def <I> ghi <P> jkl

R=nigeltao
CC=golang-dev
https://golang.org/cl/5309074

13 years agofmt: handle os.Error values
Russ Cox [Fri, 28 Oct 2011 04:20:44 +0000 (21:20 -0700)]
fmt: handle os.Error values

Handling os.Error is no different than handling fmt.Stringer
here, so the code is redundant now, but it will be necessary
once error goes in.

Adding it now will make gofix fix it.

R=r
CC=golang-dev
https://golang.org/cl/5331045

13 years agotemplate: do not use error as stringer
Russ Cox [Fri, 28 Oct 2011 04:17:47 +0000 (21:17 -0700)]
template: do not use error as stringer

R=r
CC=golang-dev
https://golang.org/cl/5305069

13 years agogob: split uses of gobError, remove unnecessary embedding
Russ Cox [Fri, 28 Oct 2011 03:20:59 +0000 (20:20 -0700)]
gob: split uses of gobError, remove unnecessary embedding

Will make gofix for error run more smoothly.
The overloading of gobError appears to be unintentional.

R=r
CC=golang-dev
https://golang.org/cl/5308060

13 years agostrconv: use better errors than os.EINVAL, os.ERANGE
Russ Cox [Fri, 28 Oct 2011 02:46:31 +0000 (19:46 -0700)]
strconv: use better errors than os.EINVAL, os.ERANGE

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5327052

13 years agocrypto/tls: add Error method to alert
Russ Cox [Fri, 28 Oct 2011 02:42:32 +0000 (19:42 -0700)]
crypto/tls: add Error method to alert

alerts get used as both values and errors.
Rather than introduce an alertError wrapper,
this CL just adds an Error method, which will
satisfy the error interface when the time comes.

R=agl, bradfitz
CC=golang-dev
https://golang.org/cl/5294073

13 years agotest: error-related fixes
Russ Cox [Fri, 28 Oct 2011 02:41:39 +0000 (19:41 -0700)]
test: error-related fixes

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5328051

13 years agoxml: simplify test
Russ Cox [Fri, 28 Oct 2011 02:40:41 +0000 (19:40 -0700)]
xml: simplify test

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5320051

13 years agogo/build: avoid os.Error in tests
Russ Cox [Fri, 28 Oct 2011 02:39:40 +0000 (19:39 -0700)]
go/build: avoid os.Error in tests

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5308061

13 years agogo/doc: remove os.NewError anti-heuristic
Russ Cox [Fri, 28 Oct 2011 02:39:25 +0000 (19:39 -0700)]
go/doc: remove os.NewError anti-heuristic

It will be obsolete when error happens.

Submitting this now will make the error transition earlier,
at the cost of making a locally-built godoc viewing
/pkg/syscall or /pkg/os have some functions appear
under the Error type as constructors.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5305067

13 years agoencoding/binary: fix type in test
Russ Cox [Fri, 28 Oct 2011 02:38:57 +0000 (19:38 -0700)]
encoding/binary: fix type in test

Was working only accidentally.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5303082

13 years agocrypto/openpgp/error: use Error in names of error impl types
Russ Cox [Fri, 28 Oct 2011 02:38:32 +0000 (19:38 -0700)]
crypto/openpgp/error: use Error in names of error impl types

Will make gofix for error work better.
There is no other indication in this file that
these are actually error implementations.

(They are only used elsewhere.)

R=bradfitz
CC=golang-dev
https://golang.org/cl/5305068

13 years agodoc: A Tour of Go in Japanese
Andrew Gerrand [Fri, 28 Oct 2011 01:55:58 +0000 (10:55 +0900)]
doc: A Tour of Go in Japanese

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5318058

13 years agohtml: fix print argument in test
Russ Cox [Fri, 28 Oct 2011 01:04:29 +0000 (18:04 -0700)]
html: fix print argument in test

R=nigeltao
CC=golang-dev
https://golang.org/cl/5302069

13 years agoruntime: lock the main goroutine to the main OS thread during init
Russ Cox [Fri, 28 Oct 2011 01:04:12 +0000 (18:04 -0700)]
runtime: lock the main goroutine to the main OS thread during init

We only guarantee that the main goroutine runs on the
main OS thread for initialization.  Programs that wish to
preserve that property for main.main can call runtime.LockOSThread.
This is what programs used to do before we unleashed
goroutines during init, so it is both a simple fix and keeps
existing programs working.

R=iant, r, dave, dvyukov
CC=golang-dev
https://golang.org/cl/5309070

13 years agopkg: remove .String() from some print arguments
Russ Cox [Fri, 28 Oct 2011 01:03:52 +0000 (18:03 -0700)]
pkg: remove .String() from some print arguments

I found these by adding a check to govet, but the check
produces far too many false positives to be useful.
Even so, these few seem worth cleaning up.

R=golang-dev, bradfitz, iant
CC=golang-dev
https://golang.org/cl/5311067

13 years agohtml: allow whitespace text nodes in <head>
Andrew Balholm [Thu, 27 Oct 2011 22:06:30 +0000 (09:06 +1100)]
html: allow whitespace text nodes in <head>

Pass tests1.dat, test 50:
<!DOCTYPE html><script> <!-- </script> --> </script> EOF

| <!DOCTYPE html>
| <html>
|   <head>
|     <script>
|       " <!-- "
|     " "
|   <body>
|     "-->  EOF"

Also pass tests through test 54:
<!DOCTYPE html><title>U-test</title><body><div><p>Test<u></p></div></body>

R=nigeltao
CC=golang-dev
https://golang.org/cl/5311066

13 years agomisc/windows: allow to be used for amd64
Alex Brainman [Thu, 27 Oct 2011 21:45:17 +0000 (08:45 +1100)]
misc/windows: allow to be used for amd64

R=jdpoirier
CC=golang-dev
https://golang.org/cl/5305048

13 years agospec: define that initialization is sequential
Russ Cox [Thu, 27 Oct 2011 19:22:45 +0000 (12:22 -0700)]
spec: define that initialization is sequential

This is true of the existing implementations, and I think
it is an important property to guarantee.

R=golang-dev, r, borman, r
CC=golang-dev
https://golang.org/cl/5321058

13 years agogo/parser: test and fix := scoping bug
Russ Cox [Thu, 27 Oct 2011 19:22:06 +0000 (12:22 -0700)]
go/parser: test and fix := scoping bug

R=iant
CC=golang-dev, gri
https://golang.org/cl/5327048

13 years agogoinstall: More intelligent vcs selection for common sites
Julian Phillips [Thu, 27 Oct 2011 08:45:07 +0000 (17:45 +0900)]
goinstall: More intelligent vcs selection for common sites

goinstall has built in support for a few common code hosting sites.  The
identification of which vcs tool should be used was based purely on a
regex match against the provided import path.  The problem with this
approach is that it requires distinct import paths for different vcs
tools on the same site.

Since bitbucket has recently starting hosting Git repositories under the
same bitbucket.org/user/project scheme as it already hosts Mercurial
repositories, now would seem a good time to take a more flexible
approach.

We still match the import path against a list of regexes, but now the
match is purely to distinguish the different hosting sites.  Once the
site is identified, the specified function is called with the repo and
path matched out of the import string.  This function is responsible for
creating the vcsMatch structure that tells us what we need to download
the code.

For github and launchpad, only one vcs tool is currently supported, so
these functions can simply return a vcsMatch structure.  For googlecode,
we retain the behaviour of determing the vcs from the import path - but
now it is done by the function instead of the regex.  For bitbucket, we
use api.bitbucket.org to find out what sort of repository the specified
import path corresponds to - and then construct the appropriate vcsMatch
structure.

R=golang-dev, adg
CC=golang-dev, rsc
https://golang.org/cl/5306069

13 years agodoc: fix escaping in weekly.html
Andrew Gerrand [Thu, 27 Oct 2011 06:40:57 +0000 (15:40 +0900)]
doc: fix escaping in weekly.html

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5306070

13 years agohtml: parse <style> elements inside <head> element.
Andrew Balholm [Wed, 26 Oct 2011 23:26:11 +0000 (10:26 +1100)]
html: parse <style> elements inside <head> element.

Also correctly handle EOF inside a <style> element.

Pass tests1.dat, test 49:
<!DOCTYPE html><style> EOF

| <!DOCTYPE html>
| <html>
|   <head>
|     <style>
|       " EOF"
|   <body>

R=nigeltao
CC=golang-dev
https://golang.org/cl/5321057

13 years agohtml: close <option> element when opening <optgroup>
Andrew Balholm [Wed, 26 Oct 2011 22:45:53 +0000 (09:45 +1100)]
html: close <option> element when opening <optgroup>

Pass tests1.dat, test 34:
<!DOCTYPE html>A<option>B<optgroup>C<select>D</option>E

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     "A"
|     <option>
|       "B"
|     <optgroup>
|       "C"
|       <select>
|         "DE"

Also passes tests 35-48. Test 48 is:
</ COM--MENT >

R=nigeltao
CC=golang-dev
https://golang.org/cl/5311063

13 years ago6l: remove mention of -e flag
Russ Cox [Wed, 26 Oct 2011 22:28:18 +0000 (15:28 -0700)]
6l: remove mention of -e flag

Emitting ELF symbol table is the default behavior now
and cannot be disabled.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5319050

13 years agocc: change cas to newcase
Ron Minnich [Wed, 26 Oct 2011 22:27:59 +0000 (15:27 -0700)]
cc: change cas to newcase

Change the name of cas() in cc to newcase() to avoid a NIX conflict.
cas() is used in cc to create a new Case struct. There is a name
conflict in that cas() is a commonly-used
name for compare and swap. Since cas() is only used internally
in the compiler in 3 places, change the name to avoid a wider
conflict with the NIX runtime. This issue might well come up on
other OSes in the future anyway, as the name is fairly common.

R=rsc
CC=golang-dev
https://golang.org/cl/5294071

13 years agotest/alias.go: additional tests
Russ Cox [Wed, 26 Oct 2011 22:27:47 +0000 (15:27 -0700)]
test/alias.go: additional tests

R=ken2
CC=golang-dev
https://golang.org/cl/5327045

13 years agomisc/vim: Add rune keyword
Jongmin Kim [Wed, 26 Oct 2011 22:13:06 +0000 (09:13 +1100)]
misc/vim: Add rune keyword
According to adding rune type

R=adg, dsymonds
CC=golang-dev
https://golang.org/cl/5319048

13 years agogofix: test import insertion, deletion
Russ Cox [Wed, 26 Oct 2011 21:04:07 +0000 (14:04 -0700)]
gofix: test import insertion, deletion

Small change to go/ast, go/parser, go/printer so that
gofix can delete the blank line left from deleting an import.

R=golang-dev, bradfitz, adg
CC=golang-dev
https://golang.org/cl/5321046

13 years agoA+C: Ron Minnich (individual CLA)
Russ Cox [Wed, 26 Oct 2011 19:40:45 +0000 (12:40 -0700)]
A+C: Ron Minnich (individual CLA)

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5308057

13 years agoA+C: Jan Newmarch (individual CLA)
Russ Cox [Wed, 26 Oct 2011 19:20:40 +0000 (12:20 -0700)]
A+C: Jan Newmarch (individual CLA)

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5305062

13 years agoC+A: add Jongmin Kim (individual CLA)
Brad Fitzpatrick [Wed, 26 Oct 2011 18:17:48 +0000 (11:17 -0700)]
C+A: add Jongmin Kim (individual CLA)

R=golang-dev, rsc, iant
CC=golang-dev
https://golang.org/cl/5312057

13 years agocrypto/rsa: change public exponent from 3 to 65537
Adam Langley [Wed, 26 Oct 2011 14:41:24 +0000 (10:41 -0400)]
crypto/rsa: change public exponent from 3 to 65537

Although there's still no concrete security reason not to use 3, I
think Bleichenbacher has convinced me that it's a useful defense and
it's what everyone else does.

R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5307060

13 years agonet: document why we do not use SO_REUSEADDR on windows
Alex Brainman [Wed, 26 Oct 2011 11:25:20 +0000 (22:25 +1100)]
net: document why we do not use SO_REUSEADDR on windows

R=rsc, adg
CC=golang-dev
https://golang.org/cl/5302058

13 years ago.hgignore: ignore src/pkg/exp/ebnflint/ebnflint
Alex Brainman [Wed, 26 Oct 2011 11:22:33 +0000 (22:22 +1100)]
.hgignore: ignore src/pkg/exp/ebnflint/ebnflint

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5294060

13 years agogc: fix [568]g -V crash
Mikio Hara [Wed, 26 Oct 2011 07:16:46 +0000 (16:16 +0900)]
gc: fix [568]g -V crash

R=lvd
CC=golang-dev
https://golang.org/cl/5314060

13 years agoredo CL 5302057 / dac58d9c9e4a
Andrew Gerrand [Wed, 26 Oct 2011 06:27:29 +0000 (15:27 +0900)]
redo CL 5302057 / dac58d9c9e4a

««« original CL description
http: remove Connection header in ReverseProxy

Fixes #2342

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5302057
»»»

R=bradfitz, dsymonds
CC=golang-dev
https://golang.org/cl/5296055

13 years agotag weekly.2011-10-26
Andrew Gerrand [Wed, 26 Oct 2011 06:10:00 +0000 (15:10 +0900)]
tag weekly.2011-10-26

R=rsc
CC=golang-dev
https://golang.org/cl/5304063

13 years agoweekly.2011-10-26 (new rune type) weekly.2011-10-26
Andrew Gerrand [Wed, 26 Oct 2011 05:47:38 +0000 (14:47 +0900)]
weekly.2011-10-26 (new rune type)

R=rsc
CC=golang-dev
https://golang.org/cl/5297062

13 years agoexp/norm: use rune
Russ Cox [Wed, 26 Oct 2011 05:26:12 +0000 (22:26 -0700)]
exp/norm: use rune

Nothing terribly interesting here. (!)

Since the public APIs are all in terms of UTF-8,
the changes are all internal only.

R=mpvl, gri, r
CC=golang-dev
https://golang.org/cl/5309042

13 years agocsv, gob, json, mail, mime, xml: use rune
Russ Cox [Wed, 26 Oct 2011 05:23:54 +0000 (22:23 -0700)]
csv, gob, json, mail, mime, xml: use rune

Nothing terribly interesting here.

R=golang-dev, r, borman
CC=golang-dev
https://golang.org/cl/5315043

13 years agobufio, io: use rune
Russ Cox [Wed, 26 Oct 2011 05:23:34 +0000 (22:23 -0700)]
bufio, io: use rune

ReadRune, WriteRune change signature.

R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/5314043

13 years agounicode, utf8, utf16: use rune
Russ Cox [Wed, 26 Oct 2011 05:23:15 +0000 (22:23 -0700)]
unicode, utf8, utf16: use rune

Everything changes.

R=r
CC=golang-dev
https://golang.org/cl/5310045

13 years agoold/regexp, old/template, template: use rune
Russ Cox [Wed, 26 Oct 2011 05:22:42 +0000 (22:22 -0700)]
old/regexp, old/template, template: use rune

Nothing terribly interesting here.

R=r, gri
CC=golang-dev
https://golang.org/cl/5308042

13 years agoexp/template/html: use rune
Russ Cox [Wed, 26 Oct 2011 05:22:26 +0000 (22:22 -0700)]
exp/template/html: use rune

Nothing terribly interesting here.

R=mikesamuel, nigeltao, r
CC=golang-dev
https://golang.org/cl/5307044

13 years agobytes, strings: use rune
Russ Cox [Wed, 26 Oct 2011 05:22:09 +0000 (22:22 -0700)]
bytes, strings: use rune

Various rune-based APIs change.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5306044

13 years agobig: update for fmt interface changes
Russ Cox [Wed, 26 Oct 2011 05:21:49 +0000 (22:21 -0700)]
big: update for fmt interface changes

Nothing terribly interesting here.

R=gri
CC=golang-dev
https://golang.org/cl/5305046

13 years agofmt: use rune
Russ Cox [Wed, 26 Oct 2011 05:21:33 +0000 (22:21 -0700)]
fmt: use rune

Lots of internal edits.

Formatter and Scanner interfaces change
(clients to be checked by govet).

R=r
CC=golang-dev
https://golang.org/cl/5305045

13 years agoexp/winfsnotify: fix govet-found bug
Russ Cox [Wed, 26 Oct 2011 05:21:14 +0000 (22:21 -0700)]
exp/winfsnotify: fix govet-found bug

R=golang-dev, hectorchu
CC=golang-dev
https://golang.org/cl/5304044

13 years agoregexp: use rune
Russ Cox [Wed, 26 Oct 2011 05:20:57 +0000 (22:20 -0700)]
regexp: use rune

Public API of syntax tree changes.

R=golang-dev, r, gri
CC=golang-dev
https://golang.org/cl/5302046

13 years agogovet: update signatures for rune
Russ Cox [Wed, 26 Oct 2011 05:20:35 +0000 (22:20 -0700)]
govet: update signatures for rune

R=r
CC=golang-dev
https://golang.org/cl/5301053

13 years agogodoc, exp/ebnf, exp/types, go/scanner, scanner: use rune
Russ Cox [Wed, 26 Oct 2011 05:20:20 +0000 (22:20 -0700)]
godoc, exp/ebnf, exp/types, go/scanner, scanner: use rune

API question: is a scanner token an int or a rune?

Since the rune is the common case and the token values
are the special (negative) case, I chose rune.  But it could
easily go the other way.

R=gri
CC=golang-dev
https://golang.org/cl/5301049

13 years agocgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: use...
Russ Cox [Wed, 26 Oct 2011 05:20:02 +0000 (22:20 -0700)]
cgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: use rune

Nothing terribly interesting here.

R=golang-dev, bradfitz, gri, r
CC=golang-dev
https://golang.org/cl/5300043

13 years agogc: introduce rune
Russ Cox [Wed, 26 Oct 2011 05:19:39 +0000 (22:19 -0700)]
gc: introduce rune

R=ken, r
CC=golang-dev
https://golang.org/cl/5293046

13 years agoexp/types: add rune to universe
Russ Cox [Wed, 26 Oct 2011 05:19:09 +0000 (22:19 -0700)]
exp/types: add rune to universe

R=gri
CC=golang-dev
https://golang.org/cl/5295045

13 years agoundo CL 5302057 / dac58d9c9e4a
Andrew Gerrand [Wed, 26 Oct 2011 05:16:34 +0000 (14:16 +0900)]
undo CL 5302057 / dac58d9c9e4a

need a clean base from weekly.2011-10-25 for rune change

««« original CL description
http: remove Connection header in ReverseProxy

Fixes #2342

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5302057
»»»

R=rsc
CC=golang-dev
https://golang.org/cl/5294068

13 years agohttp: remove Connection header in ReverseProxy
Brad Fitzpatrick [Wed, 26 Oct 2011 05:11:01 +0000 (22:11 -0700)]
http: remove Connection header in ReverseProxy

Fixes #2342

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5302057

13 years agotag weekly.2011-10-25
Andrew Gerrand [Wed, 26 Oct 2011 05:10:44 +0000 (14:10 +0900)]
tag weekly.2011-10-25

R=rsc
CC=golang-dev
https://golang.org/cl/5306064

13 years agoweekly.2011-10-25 weekly.2011-10-25
Andrew Gerrand [Wed, 26 Oct 2011 05:09:25 +0000 (14:09 +0900)]
weekly.2011-10-25

R=rsc
CC=golang-dev
https://golang.org/cl/5321053

13 years agohtml: improve parsing of lists
Andrew Balholm [Wed, 26 Oct 2011 03:02:30 +0000 (14:02 +1100)]
html: improve parsing of lists

Make a <li> tag close the previous <li> element.
Make a </ul> tag close <li> elements.

Pass tests1.dat, test 33:
<!DOCTYPE html><li>hello<li>world<ul>how<li>do</ul>you</body><!--do-->

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <li>
|       "hello"
|     <li>
|       "world"
|       <ul>
|         "how"
|         <li>
|           "do"
|       "you"
|   <!-- do -->

R=nigeltao
CC=golang-dev
https://golang.org/cl/5321051

13 years agohtml: improve parsing of tables
Andrew Balholm [Wed, 26 Oct 2011 00:36:46 +0000 (11:36 +1100)]
html: improve parsing of tables

When foster parenting, merge adjacent text nodes.
Properly close table row at </tr> tag.

Pass tests1.dat, test 32:
<!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X-->

| <!-- - -->
| <html>
|   <head>
|   <body>
|     <font>
|       <div>
|         "helloexcite!"
|         <b>
|           "me!"
|         <table>
|           <tbody>
|             <tr>
|               <th>
|                 <i>
|                   "please!"
|             <!-- X -->

R=nigeltao
CC=golang-dev
https://golang.org/cl/5323048

13 years agosyscall: correct name of mksyscall script in comment
Ian Lance Taylor [Tue, 25 Oct 2011 19:49:51 +0000 (12:49 -0700)]
syscall: correct name of mksyscall script in comment

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5310055

13 years agoruntime: include bootstrap m in mcpu accounting
Hector Chu [Tue, 25 Oct 2011 07:35:20 +0000 (08:35 +0100)]
runtime: include bootstrap m in mcpu accounting

R=rsc, dvyukov
CC=golang-dev
https://golang.org/cl/5307052

13 years agohttp: doc typo
Brad Fitzpatrick [Tue, 25 Oct 2011 02:29:44 +0000 (19:29 -0700)]
http: doc typo

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5303067

13 years agosyscall: use uintptr for Mount flags.
David Anderson [Tue, 25 Oct 2011 02:28:50 +0000 (19:28 -0700)]
syscall: use uintptr for Mount flags.

R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5308044

13 years agohtml: remove the Tokenizer.ReturnComments option.
Nigel Tao [Tue, 25 Oct 2011 00:28:07 +0000 (11:28 +1100)]
html: remove the Tokenizer.ReturnComments option.

The original intention was to simplify the parser, in making it skip
all comment tokens. However, checking that the Go html package is
100% compatible with the WebKit HTML test suite requires parsing the
comments. There is no longer any real benefit for the option.

R=gri, andybalholm
CC=golang-dev
https://golang.org/cl/5321043

13 years agoexp/ssh: introduce Session to replace Cmd for interactive commands
Dave Cheney [Mon, 24 Oct 2011 23:13:55 +0000 (19:13 -0400)]
exp/ssh: introduce Session to replace Cmd for interactive commands

This CL replaces the Cmd type with a Session type representing
interactive channels. This lays the foundation for supporting
other kinds of channels like direct-tcpip or x11.

client.go:
* replace chanlist map with slice.
* generalize stdout and stderr into a single type.
* unexport ClientChan to clientChan.

doc.go:
* update ServerConfig/ServerConn documentation.
* update Client example for Session.

message.go:
* make channelExtendedData more like channelData.

session.go:
* added Session which replaces Cmd.

R=agl, rsc, n13m3y3r, gustavo
CC=golang-dev
https://golang.org/cl/5302054

13 years agohtml: dump attributes when running parser tests.
Andrew Balholm [Mon, 24 Oct 2011 22:33:15 +0000 (09:33 +1100)]
html: dump attributes when running parser tests.

The WebKit test data shows attributes as though they were child nodes:

<a X>0<b>1<a Y>2
dumps as:
| <html>
|   <head>
|   <body>
|     <a>
|       x=""
|       "0"
|       <b>
|         "1"
|     <b>
|       <a>
|         y=""
|         "2"

So we need to do the same when dumping a tree to compare with it.

R=nigeltao
CC=golang-dev
https://golang.org/cl/5322044