Commit Graph

19 Commits

Author SHA1 Message Date
Dmitri Shuralyov
d23d9bc549 all: update go directive to 1.18
Done with:

go get go@1.18
go mod tidy
go fix ./...

Using go1.21.3.

With a manual change to keep golang.org/x/net/context testing itself,
not context in the standard library.

For golang/go#60268.

Change-Id: I00682bf7cf1e3ba4370e2a3e7f63dc245b294a36
Reviewed-on: https://go-review.googlesource.com/c/net/+/534241
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2023-10-11 21:58:12 +00:00
Russ Cox
f5464ddb68 idna: update for Unicode 15.0.0
Changes entirely automated, the result of running

	cd src/golang.org/x/text
	go generate ./...

(which also edits x/net for us).

For golang/go#55079.

Change-Id: I6a638949ff2c53bc98c635e5e3b5ed672b51d71a
Reviewed-on: https://go-review.googlesource.com/c/net/+/503055
Run-TryBot: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
2023-06-13 20:37:45 +00:00
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
Damien Neil
ce137452f9 idna: update from x/text
CL 359634: use nontransitional processing in Go 1.18
CL 317731: fix int32 overflows

Updates golang/go#46001
Updates golang/go#47510
Updates golang/go#28233

Change-Id: I2d9cdf5caa44f7c9b2834a256e7464b6edaae9ef
Reviewed-on: https://go-review.googlesource.com/c/net/+/360381
Trust: Damien Neil <dneil@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-11-04 17:00:05 +00:00
Timothy Gu
aec3718b3f idna: allow specifying CheckHyphens and CheckJoiners
This copies CL 258837 from x/text over to this module.

Fixes golang/go#41732.

Change-Id: I41fc11c9a13faacb42504827063b60f7648426d2
Reviewed-on: https://go-review.googlesource.com/c/net/+/273586
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
Trust: Nigel Tao <nigeltao@golang.org>
Trust: Cherry Zhang <cherryyz@google.com>
2021-05-01 14:20:56 +00:00
Russ Cox
5f55cee0dc all: go fmt ./...
Make all our package sources use Go 1.17 gofmt format
(adding //go:build lines).

Not strictly necessary but will avoid spurious changes
as files are edited.

Part of //go:build change (#41184).
See https://golang.org/design/draft-gobuild

Change-Id: I5b2b7d93424e828a3c5f76ae3f30ab825aca388e
Reviewed-on: https://go-review.googlesource.com/c/net/+/294371
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-02-20 03:31:24 +00:00
Marcel van Lohuizen
8eef5233e2 idna: upgrade to Unicode 13
Change-Id: I4f95287e518eb1284bd03b39d667c256f6ce9d20
Reviewed-on: https://go-review.googlesource.com/c/net/+/265022
Trust: Marcel van Lohuizen <mpvl@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2020-10-27 13:37:19 +00:00
Marcel van Lohuizen
0deb6923b6 idna: update tables to Unicode 12
Change-Id: Iccaeb8f986263aacda9b10c6a945c2dddbdec79f
Reviewed-on: https://go-review.googlesource.com/c/net/+/204498
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-11-01 17:50:33 +00:00
Marcel van Lohuizen
4829fb13d2 idna: update to Unicode 11
Also adopt Unicode selection based on the Unicode
version used by the go binary, as is done in x/text.

Change-Id: I334897e15b2e6fcc6ca175e7eaaa6262ae838f80
Reviewed-on: https://go-review.googlesource.com/c/net/+/172738
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-04-24 11:20:56 +00:00
Marcel van Lohuizen
49e6db1c9e idna: bug fix imported from x/text
See CL 73730: avoid memory leak in validation codes
Upstream at 8253218a.

Change-Id: I3d4860989c8e057f9cc4c9087a78c9c800c5aa7d
Reviewed-on: https://go-review.googlesource.com/74954
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-11-02 17:05:40 +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
namusyaka
8351a756f3 all: fix article typos
a -> an

Change-Id: I7d0413396e51f16e0a83732a07a5536548e03506
Reviewed-on: https://go-review.googlesource.com/63992
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-09-15 14:21:06 +00:00
Hiroaki Nakamura
b129b8e0fb idna: add test for domains containing non-ASCII dots
Change-Id: I1011371968c2a548378c7490212a39989a9de75e
Reviewed-on: https://go-review.googlesource.com/38284
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
2017-09-12 21:17:36 +00:00
Marcel van Lohuizen
d997483c6d idna: update from x/text
Fixes golang/go#19821

Change-Id: Iee5d43dfeaaf580c39ca38a7a3a74cf2a8b347b3
Reviewed-on: https://go-review.googlesource.com/44381
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2017-06-27 09:35:25 +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
David Symonds
8aa6e209cb net: add import comments.
Change-Id: Ifab0fdaec1d810d268b7c19ad30f476802203b37
2014-12-09 14:17:11 +11:00
Nigel Tao
7db922ba9e go.net/idna: new package.
R=rsc, dr.volker.dobler, remyoudompheng, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/6868090
2012-12-14 08:44:53 +11:00