Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/text/collate: upgrading the CLDR to 40 fails #52485

Open
jpnjfk opened this issue Apr 22, 2022 · 2 comments
Open

x/text/collate: upgrading the CLDR to 40 fails #52485

jpnjfk opened this issue Apr 22, 2022 · 2 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@jpnjfk
Copy link

jpnjfk commented Apr 22, 2022

Since the x/text/collate uses the CLDR 23 which is quite old, I tried to upgrade the CLDR to 40 for the package.
However, I got the errors in the section "What did you see instead?".
Is there another way to upgrade the CLDR for x/text/collate?

What version of Go are you using (go version)?

$ go version
go version go1.18.1 windows/amd64

What operating system and processor architecture are you using (go env)?

$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\jpnjfk\AppData\Local\go-build
set GOENV=C:\Users\jpnjfk\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\jpnjfk\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=*.sas.com
set GOOS=windows
set GOPATH=C:\Users\jpnjfk\go
set GOPRIVATE=
set GOPROXY=http://goproxy.sas.com:3000
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.18.1
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\data\prg\go\src\text\go.mod
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\msys64\tmp\go-build364525401=/tmp/go-build -gno-record-gcc-switches

What did you do?
I invoked the command below in the directory text/collate.

$ CLDR_VERSION=40 go generate

What did you expect to see?
I expected that the tables were updated.

What did you see instead?
The build errors below.

$ CLDR_VERSION=40 go generate
Fetching https://www.unicode.org/Public/cldr/23/core.zip... done.
builder.go:363: af:overflow: collation elements of "ʼn" ([149]) overflows those of "N" ([FF2E]) at level 2 ([{[174F 20 9 4E] 0}] >= [{[174F 20 9 FF2E] 0}])
builder.go:363: as:overflow: collation elements of "ঃ" ([983]) overflows those of "ক" ([995]) at level 0 ([{[204E 20 2 994] 0}] >= [{[204C 20 2 995] 0}])
builder.go:363: as:overflow: collation elements of "ণ" ([9A3]) overflows those of "ৎ" ([9CE]) at level 0 ([{[205A 20 2 9A3] 0}] >= [{[205A 20 2 9A4] 0}])
builder.go:363: as:overflow: collation elements of "ক্ষ" ([995 9CD 9B7]) overflows those of "ঽ" ([9BD]) at level 0 ([{[206E 20 2 9B9] 0}] >= [{[206E 20 2 9BD] 0}])
builder.go:363: az:overflow: collation elements of "ʽ" ([2BD]) overflows those of "ı" ([131]) at level 0 ([{[16CC 20 2 2BD] 0}] >= [{[16CC 20 2 69] 0}])
builder.go:363: az:overflow: collation elements of "İ" ([130]) overflows those of "i" ([FF49]) at level 2 ([{[16CD 20 3 69] 0}] >= [{[16CD 20 3 FF49] 0}])
builder.go:363: bn:overflow: collation elements of "ঁ" ([981]) overflows those of "ক" ([995]) at level 0 ([{[204E 20 2 994] 0}] >= [{[204C 20 2 995] 0}])
builder.go:363: da:overflow: collation elements of "þ" ([FE]) overflows those of "t" ([FF54]) at level 2 ([{[1816 20 3 74] 0}] >= [{[1816 20 3 FF54] 0}])
builder.go:363: da:overflow: collation elements of "Þ" ([DE]) overflows those of "T" ([FF34]) at level 2 ([{[1816 20 9 54] 0}] >= [{[1816 20 9 FF34] 0}])
builder.go:363: dz:overflow: collation elements of "༴" ([F34]) overflows those of "ៗ" ([17D7]) at level 0 ([{[13DE 27 2 EC6] 0}] >= [{[13DE 20 2 17D7] 0}])
...... AND so on
@gopherbot gopherbot added this to the Unreleased milestone Apr 22, 2022
@thanm thanm added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 22, 2022
@thanm
Copy link
Contributor

thanm commented Apr 22, 2022

@mpvl @nigeltao

@jpnjfk
Copy link
Author

jpnjfk commented Aug 29, 2023

This ticket has not been updated for a while.
Is there any plan for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants