fmt: issues related to EUC-KR encoding string scanf #24353
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9.1 linux/amd64
Does this issue reproduce with the latest release?
I didn't check it.
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/newro/app/go"
GORACE=""
GOROOT="/home/newro/go1.9.1"
GOTOOLDIR="/home/newro/go1.9.1/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build985492979=/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?
Sample code : https://play.golang.org/p/-GtWnBxeDAB
fmt.Sscanf does not seem to work properly with the euc-kr charset.
I am working in an euc-kr environment, but I have not been able to perform an overall test on a multi-byte rune string.
What did you expect to see?
When you work with the euc-kr string using fmt.Sscanf, the same character (euc-kr) string must be assigned to word, word2.
What did you see instead?
Unknown string code set is assigned to string string by sscanf.
The text was updated successfully, but these errors were encountered: