go/src/internal
Yasuhiro Matsumoto b851ded09a os: use GetConsoleCP() instead of GetACP()
It is possible (and common) for Windows systems to use a different codepage
for console applications from that used on normal windowed application
(called ANSI codepage); for instance, most of the western Europe uses
CP850 for console (for backward compatibility with MS-DOS), while
windowed applications use a different codepage depending on the country
(eg: CP1252 aka Latin-1). The usage being changed with this commit is
specifically related to decoding input coming from the console, so the
previous usage of the ANSI codepage was wrong.

Also fixes an issue that previous did convert bytes as NFD. Go is
designed to handle single Unicode code point. This fix change behaivor
to NFC.

Fixes #16857.

Change-Id: I4f41ae83ece47321b6e9a79a2087ecbb8ac066dd
Reviewed-on: https://go-review.googlesource.com/27575
Reviewed-by: Hiroshi Ioka <hirochachacha@gmail.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
2016-09-21 00:38:51 +00:00
..
nettrace net, net/http: don't trace DNS dials 2016-05-14 00:14:25 +00:00
race all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
singleflight all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
syscall os: use GetConsoleCP() instead of GetACP() 2016-09-21 00:38:51 +00:00
testenv internal/testenv: add GoTool 2016-09-10 20:50:12 +00:00
trace internal/trace: fix analysis of EvGoWaiting/EvGoInSyscall events 2016-08-19 19:22:17 +00:00