1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* missing/langinfo.c (nl_langinfo_0): fixed typos for SJIS.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-01-05 08:59:46 +00:00
parent c6827f709c
commit 893efc4db9
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
Mon Jan 5 17:51:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
Mon Jan 5 17:59:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (cygwin): needs properly implemented nl_langinfo().
[ruby-core:21110]
@ -6,6 +6,8 @@ Mon Jan 5 17:51:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* missing/langinfo.c: added as suggested at [ruby-core:21015], from
http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c.
* missing/langinfo.c (nl_langinfo_0): fixed typos for SJIS.
Mon Jan 5 17:38:40 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* encoding.c (rb_locale_charmap): use GetConsoleCP() instead of

View file

@ -76,10 +76,10 @@ static const char *nl_langinfo_0(nl_item item)
if (strstart(p, "620")) return "TIS-620";
if (strstart(p, "2312")) return "GB2312";
if (strstart(p, "HKSCS")) return "Big5HKSCS"; /* no MIME charset */
if (strstart(p, "Big5") || strstart(l, "BIG5")) return "Big5";
if (strstart(p, "BIG5")) return "Big5";
if (strstart(p, "GBK")) return "GBK"; /* no MIME charset */
if (strstart(p, "18030")) return "GB18030"; /* no MIME charset */
if (strstart(p, "Shift_JIS") || strstart(l, "SJIS")) return "Shift_JIS";
if (strstart(p, "Shift_JIS") || strstart(p, "SJIS")) return "Shift_JIS";
/* check for conclusive modifier */
if (strstart(p, "euro")) return "ISO-8859-15";
}