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

* ext/nkf/nkf-utf8/nkf.c (options): use input_endian.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-07-09 00:50:37 +00:00
parent 6e0b5f40cc
commit ec18fc70a3
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Wed Jul 9 09:12:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf-utf8/nkf.c (options): use input_endian.
Wed Jul 9 01:38:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed Jul 9 01:38:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_succ): alphabets or numerics mutually enclosing * string.c (rb_str_succ): alphabets or numerics mutually enclosing

View file

@ -6086,8 +6086,8 @@ options(unsigned char *cp)
input_endian = ENDIAN_BIG; input_endian = ENDIAN_BIG;
} }
enc_idx = enc_idx == UTF_16 enc_idx = enc_idx == UTF_16
? (output_endian == ENDIAN_LITTLE ? UTF_16LE : UTF_16BE) ? (input_endian == ENDIAN_LITTLE ? UTF_16LE : UTF_16BE)
: (output_endian == ENDIAN_LITTLE ? UTF_32LE : UTF_32BE); : (input_endian == ENDIAN_LITTLE ? UTF_32LE : UTF_32BE);
input_encoding = nkf_enc_from_index(enc_idx); input_encoding = nkf_enc_from_index(enc_idx);
} }
continue; continue;