Open
Description
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