ruby-changes:23630
From: tenderlove <ko1@a...>
Date: Fri, 18 May 2012 01:29:49 +0900 (JST)
Subject: [ruby-changes:23630] tenderlove:r35681 (trunk): * ext/psych/parser.c (transcode_string): fix encoding index names.
tenderlove 2012-05-18 01:29:39 +0900 (Fri, 18 May 2012) New Revision: 35681 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35681 Log: * ext/psych/parser.c (transcode_string): fix encoding index names. Thanks markizko for reporting. Modified files: trunk/ChangeLog trunk/ext/psych/parser.c Index: ChangeLog =================================================================== --- ChangeLog (revision 35680) +++ ChangeLog (revision 35681) @@ -1,3 +1,8 @@ +Fri May 18 01:28:21 2012 Aaron Patterson <aaron@t...> + + * ext/psych/parser.c (transcode_string): fix encoding index names. + Thanks markizko for reporting. + Thu May 17 23:03:58 2012 Nobuyoshi Nakada <nobu@r...> * configure.in: fix function name to be checked, to initialize Index: ext/psych/parser.c =================================================================== --- ext/psych/parser.c (revision 35680) +++ ext/psych/parser.c (revision 35681) @@ -79,8 +79,8 @@ static VALUE transcode_string(VALUE src, int * parser_encoding) { int utf8 = rb_utf8_encindex(); - int utf16le = rb_enc_find_index("UTF16_LE"); - int utf16be = rb_enc_find_index("UTF16_BE"); + int utf16le = rb_enc_find_index("UTF-16LE"); + int utf16be = rb_enc_find_index("UTF-16BE"); int source_encoding = rb_enc_get_index(src); if (source_encoding == utf8) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/