mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
3ff53c8e04
commit
5b21e94beb
Notes:
git
2022-07-22 01:42:33 +09:00
158 changed files with 38285 additions and 37251 deletions
10
localeinit.c
10
localeinit.c
|
@ -46,11 +46,11 @@ locale_charmap(VALUE (*conv)(const char *))
|
|||
codeset = nl_langinfo_codeset();
|
||||
# endif
|
||||
if (!codeset) {
|
||||
UINT codepage = ruby_w32_codepage[0];
|
||||
if (!codepage) codepage = GetConsoleCP();
|
||||
if (!codepage) codepage = GetACP();
|
||||
CP_FORMAT(cp, codepage);
|
||||
codeset = cp;
|
||||
UINT codepage = ruby_w32_codepage[0];
|
||||
if (!codepage) codepage = GetConsoleCP();
|
||||
if (!codepage) codepage = GetACP();
|
||||
CP_FORMAT(cp, codepage);
|
||||
codeset = cp;
|
||||
}
|
||||
#elif defined HAVE_LANGINFO_H
|
||||
codeset = nl_langinfo(CODESET);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue