mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/psych/parser.c (transcode_string): fix encoding index names.
Thanks markizko for reporting. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cc8ed44f10
commit
4a7add1a74
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri May 18 01:28:21 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||||
|
|
||||||
|
* ext/psych/parser.c (transcode_string): fix encoding index names.
|
||||||
|
Thanks markizko for reporting.
|
||||||
|
|
||||||
Thu May 17 23:03:58 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu May 17 23:03:58 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in: fix function name to be checked, to initialize
|
* configure.in: fix function name to be checked, to initialize
|
||||||
|
|
|
@ -79,8 +79,8 @@ static VALUE make_exception(yaml_parser_t * parser, VALUE path)
|
||||||
static VALUE transcode_string(VALUE src, int * parser_encoding)
|
static VALUE transcode_string(VALUE src, int * parser_encoding)
|
||||||
{
|
{
|
||||||
int utf8 = rb_utf8_encindex();
|
int utf8 = rb_utf8_encindex();
|
||||||
int utf16le = rb_enc_find_index("UTF16_LE");
|
int utf16le = rb_enc_find_index("UTF-16LE");
|
||||||
int utf16be = rb_enc_find_index("UTF16_BE");
|
int utf16be = rb_enc_find_index("UTF-16BE");
|
||||||
int source_encoding = rb_enc_get_index(src);
|
int source_encoding = rb_enc_get_index(src);
|
||||||
|
|
||||||
if (source_encoding == utf8) {
|
if (source_encoding == utf8) {
|
||||||
|
|
Loading…
Reference in a new issue