ruby-changes:9977
From: nobu <ko1@a...>
Date: Thu, 15 Jan 2009 13:24:21 +0900 (JST)
Subject: [ruby-changes:9977] Ruby:r21519 (trunk): * encoding.c (rb_locale_charmap): fixed typo.
nobu 2009-01-15 13:21:59 +0900 (Thu, 15 Jan 2009) New Revision: 21519 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21519 Log: * encoding.c (rb_locale_charmap): fixed typo. Modified files: trunk/encoding.c Index: encoding.c =================================================================== --- encoding.c (revision 21518) +++ encoding.c (revision 21519) @@ -1222,7 +1222,7 @@ const char *nl_langinfo_codeset(void); const char *codeset = nl_langinfo_codeset(); char cp[sizeof(int) * 3 + 4]; - if (codeset) { + if (!codeset) { snprintf(cp, sizeof(cp), "CP%d", GetConsoleCP()); codeset = cp; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/