net/url: fix handling of relative paths in ResolveReference.

Fixes issue 3560.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/6886047

Committer: Russ Cox <rsc@golang.org>
cmd/gc: remove bad check for BADWIDTH

This check for BADWIDTH might happen while in defercheckwidth, making it raise errors for non-erroneous situations.

Fixes issue 4495.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/6927043
encoding/base64: new example for NewEncoder with emphasis on Close
Fixes issue 4394.

R=iant, bradfitz, rsc, remigius.gieben
CC=golang-dev
https://codereview.appspot.com/6847125

Committer: Russ Cox <rsc@golang.org>
fmt: fix %v of complex slice

Fixes issue 4525.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/6929049
A+C: Brian Ketelsen and Miquel Sabaté Solà (individual CLA × 2)

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/6923051
regexp/syntax: export ErrUnexpectedParen

Fixes Issue 3712

R=golang-dev, dave, rsc
CC=golang-dev
https://codereview.appspot.com/6902069

Committer: Russ Cox <rsc@golang.org>
syscall: let mkall.sh work on multiarch systems (like Precise)

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/6912063
net/http, net/url: permit Request-URI "*"

Also, implement a global OPTIONS * handler, like Apache.

Permit sending "*" requests to handlers, but not path-based
(ServeMux) handlers.  That means people can go out of their
way to support SSDP or SIP or whatever, but most users will be
unaffected.

See RFC 2616 Section 5.1.2 (Request-URI)
See RFC 2616 Section 9.2 (OPTIONS)

Fixes issue 3692

R=rsc
CC=golang-dev
https://codereview.appspot.com/6868095
spec: Correct typo in method expressions example.

Also, remove unnecessary whitespace.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/6928045

Committer: Russ Cox <rsc@golang.org>
math/big: add SetUint64 and Uint64 functions to *Int

Implementation is mostly identical to passing a non-negative int64 to
SetInt64, and calling Int64 with a non-negative value in the *Int.
Fixes issue 4389.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/6929048

Committer: Russ Cox <rsc@golang.org>
regexp: re-enable TestBadCompile

The code that was commented out was for the old regexp package.
In the new one the errors and the space of valid regexps are different.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/6873063
cmd/gc: merge casep and casee labels

The code inside the casee and casep labels can perfectly be merged since
they essentially do the same. The character to be stored where cp points is
just the character contained by the c variable.

R=golang-dev, dave, rsc
CC=golang-dev
https://codereview.appspot.com/6845112

Committer: Russ Cox <rsc@golang.org>
exp/types: filling in more blanks

- implemented built-in complex()
- implemented missing expression switch checks

R=rsc
CC=golang-dev
https://codereview.appspot.com/6920046
A+C: Ryan Slade (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/6924049
encoding/csv: add Error method to Writer

Fixed issue 3931

R=bradfitz, rsc
CC=golang-dev
https://codereview.appspot.com/6923049

Committer: Russ Cox <rsc@golang.org>
doc/contribute: mention 'hg help codereview'

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/6932053
lib/codereview: suggest argument to hg mail / hg submit

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/6924050
net: TestDialTimeoutFDLeak failure

Fixes issue 4384.

Implments the suggestion by rsc in comment 15, http://code.google.com/p/go/issues/detail?id=4384#c15

An alternate suggestion would be to temporarily set GOMAXPROCS to 1 during this test.

R=fullung, rsc
CC=golang-dev
https://codereview.appspot.com/6923046
cmd/6g, cmd/8g: simplify integer division code.

Change suggested by iant. The compiler generates
special code for a/b when a is -0x80...0 and b = -1.
A single instruction can cover the case where b is -1,
so only one comparison is needed.

Fixes issue 3551.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/6922049
cmd/gc: don't import the same package multiple times.

Implementation suggested by DMorsing.

R=golang-dev, dave, daniel.morsing, rsc
CC=golang-dev
https://codereview.appspot.com/6903059