OSDN Git Service

* cygheap.cc (cygheap_init): Default locale.charset to "UTF-8".
authorcorinna <corinna>
Mon, 28 Sep 2009 10:43:49 +0000 (10:43 +0000)
committercorinna <corinna>
Mon, 28 Sep 2009 10:43:49 +0000 (10:43 +0000)
commitfb1ae020b941aea9968fea2597e933bb45b17360
tree9ad823c09090943694ab9acb4aaf66f87d897da8
parente4da0ed690b6765f7d81951037ab9402016c66e2
* cygheap.cc (cygheap_init): Default locale.charset to "UTF-8".
* dcrt0.cc (dll_crt0_1): Call setlocale (LC_CTYPE, "") here, just
before resetting application locale to "C".
* environ.cc (environ_init): Drop code setting locale here.
* syscalls.cc (check_codepage): Break out check for required codepage
from internal_setlocale.
(internal_setlocale): Just convert CWD and $PATH from old charset to
new charset and set internal charset.
(setlocale): Change accordingly.  Don't require LC_ALL or LC_CTYPE to
store old locale value.  Always call internal_setlocale if charset
changed due to locale environment changes.
winsup/cygwin/ChangeLog
winsup/cygwin/cygheap.cc
winsup/cygwin/dcrt0.cc
winsup/cygwin/environ.cc
winsup/cygwin/syscalls.cc