5 Commits

Author SHA1 Message Date
Russ Cox
290c469a71 all: gofmt
Gofmt to update doc comments to the new formatting.

For golang/go#51082.

Change-Id: Iae68a9cd600060577271575e893ecb23bed1e509
Reviewed-on: https://go-review.googlesource.com/c/net/+/399599
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-12 02:06:05 +00:00
Marcel van Lohuizen
4b14673ba3 idna: updated to Unicode 10.0.0
Generated from x/text.

Significant changes in the interpretation
of the Bidi rule as well as sharpening of
the leading dot rules, among other things.

Issue golang/go#21471

Change-Id: I8649a4090e2bc530aad4412210a3de344fb2eab6
Reviewed-on: https://go-review.googlesource.com/63951
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2017-10-24 11:51:30 +00:00
Marcel van Lohuizen
78ebe5c8b6 idna: copy the idna package from x/text, take 2.
The version is not only API compatible, but is also meant
to mimic the original behavior of doing Punycode only
with only a minimum of additional checks.
Integrated from x/text/internal/export/idna at Git SHA1
fc7fa097411d30e6708badff276c4c164425590c.

All checks making things fundamentally stricter or checks
that require tables are now optional.

Fixes golang/go#18567
Fixes golang/go#18582

Change-Id: I08e6d7f7c276d1d84e02391e22f60c0a44a8ddad
Reviewed-on: https://go-review.googlesource.com/37050
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-24 13:20:20 +00:00
Nigel Tao
f2499483f9 idna: Revert "use code generated by internal x/text package"
This reverts commit 67957fd0b1.

Updates golang/go#18567

Change-Id: I4a9da509eb95949d2e3ab08763274abf6706f6f8
Reviewed-on: https://go-review.googlesource.com/35270
Run-TryBot: Nigel Tao <nigeltao@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Benoit Sigoure <tsunanet@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-14 05:56:29 +00:00
Marcel van Lohuizen
67957fd0b1 idna: use code generated by internal x/text package
The API extends the old API but is intended to be backwards
compatible. The old test file serves as a test for this purpose.

I will send a CL to update the vendored mirror in core after
1.8 is out.

Change-Id: I538df20d42c213d9e038bdb0dad76b6cc132d4fd
Reviewed-on: https://go-review.googlesource.com/34770
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2017-01-05 19:45:23 +00:00