x/text/collate: ignores width even if the flag is not specified #23241
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9 linux/amd64
Does this issue reproduce with the latest release?
Did not check.
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN="/home/sougou/dev/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/sougou/dev"
GORACE=""
GOROOT="/home/sougou/go"
GOTOOLDIR="/home/sougou/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build590551857=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
What did you do?
I was spot-checking the collation code to see if it matched specifications: if IgnoreWidth was not specified, I was expecting "ae" to not match "Æ". However, it still matched. Here's a simplified reproduction:
What did you expect to see?
Test should pass.
What did you see instead?
Test failed.
The text was updated successfully, but these errors were encountered: