Tags: golang/text
Tags
go.mod: update golang.org/x dependencies Update golang.org/x dependencies to their latest tagged versions. Change-Id: I6b939f9a4f016b265d30fbd408f34705f89c0982 Reviewed-on: https://go-review.googlesource.com/c/text/+/626375 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: David Chase <[email protected]> Auto-Submit: Gopher Robot <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
x/text: Correct examples in number/doc Playground example: https://go.dev/play/p/9cuRyaNveO8 Change-Id: I2fbc3fec0f3755eb3d11b47edfb2201d66fc622d Reviewed-on: https://go-review.googlesource.com/c/text/+/614395 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Marcel van Lohuizen <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
all: rename Example test functions to prevent vet errors Building x/text was being prevented by vet errors caused by Example test functions of the form ExampleXxx where Xxx was not an identifier declared in the package. This is corrected by renaming: ExampleCollator_Strings to ExampleCollator_strings in text/collate ExampleDecodeWindows1252 to Example_decodeWindows1252 in text/encoding ExampleSelect to ExampleSelectf in text/feature/plural Fixes golang/go#68967 Change-Id: Id584a518af766676ab44fc49c12160e36f66542a Reviewed-on: https://go-review.googlesource.com/c/text/+/606736 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Tim King <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
go.mod: update golang.org/x dependencies Update golang.org/x dependencies to their latest tagged versions. Change-Id: I136532b352871ee714a4ccba9671a370a8abdd95 Reviewed-on: https://go-review.googlesource.com/c/text/+/602518 Auto-Submit: Gopher Robot <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: David Chase <[email protected]>
cmd/gotext: fix segfault in extract & rewrite commands If extract or rewrite are called with no arguments it results in a segmentation fault, since we dereference the out flag that was not defined for these commands. Fixes golang/go#62697 Change-Id: I697943b7c221431d0361bcec74c18183f6e141ea GitHub-Last-Rev: 313ddfa GitHub-Pull-Request: #46 Reviewed-on: https://go-review.googlesource.com/c/text/+/529255 Reviewed-by: Marcel van Lohuizen <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
encoding/charmap: update UCM spec file URL prefix UCM spec files used by encoding/maketables.go moved from source.icu-project.org to github.com, and maketables is failing. The new repo is at https://github.com/unicode-org/icu-data/tree/main/charset/data/ucm. Changed all UCM mappings to use the "raw endpoint" prefix, https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/…. Fixes golang/go#64504. Change-Id: Ib2ccf948ad79578efc4a0c356bb25325190dc333 GitHub-Last-Rev: 2a277c7 GitHub-Pull-Request: #48 Reviewed-on: https://go-review.googlesource.com/c/text/+/546576 Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Dominik Honnef <[email protected]>
all: update go directive to 1.18 Done with: go get [email protected] go mod tidy go fix ./... Using go1.21.3. Also update code generators to use only the new go:build lines, not the old +build ones. For golang/go#60268. Change-Id: I832981d939ab0aad5c941555a6a4cd005958a189 Reviewed-on: https://go-review.googlesource.com/c/text/+/534242 Reviewed-by: Damien Neil <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]>
unicode/norm: fix function name on comment Change-Id: I1d7daf1101c289f99367db2b23105e99d7e19b65 Reviewed-on: https://go-review.googlesource.com/c/text/+/523255 Run-TryBot: shuang cui <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Joedian Reid <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
cmd/gotext: actually use -dir flag gotext has the read -dir flag but is not used. The dir parameter should be passed to pipeline.Config Fixes golang/go#61507 Change-Id: I242a768964fe56c4c7877de9dc487777c6815dae Reviewed-on: https://go-review.googlesource.com/c/text/+/512015 Auto-Submit: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]>
encoding/japanese, language: shorten very long sub-test names Some of the generated sub-test names end up being excessively long, which doesn't mix well with them being stored as test IDs that track test runs over time. Replacing test case names with numbers harms their readability, so start by trimming a few that end up being 500+ bytes in length. Change-Id: Id3b22105efc08eb1bb51436aa257682d357d662c Reviewed-on: https://go-review.googlesource.com/c/text/+/506416 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>