diff options
Diffstat (limited to 'localeinit.c')
-rw-r--r-- | localeinit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/localeinit.c b/localeinit.c index 050b22350a..cea2e309f5 100644 --- a/localeinit.c +++ b/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); |