diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-09 00:50:37 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-09 00:50:37 +0000 |
| commit | 37c367a9fbef961986799bcc2cc646db74b4a03e (patch) | |
| tree | 16137bfd7724a7d5ae40b8b9b9b14ae9c5a96f52 /ext | |
| parent | 3bfcd9a45272566f8d1541476fbd47a26c342ee7 (diff) | |
| download | ruby-37c367a9fbef961986799bcc2cc646db74b4a03e.tar.gz ruby-37c367a9fbef961986799bcc2cc646db74b4a03e.tar.xz ruby-37c367a9fbef961986799bcc2cc646db74b4a03e.zip | |
* ext/nkf/nkf-utf8/nkf.c (options): use input_endian.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/nkf/nkf-utf8/nkf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/nkf/nkf-utf8/nkf.c b/ext/nkf/nkf-utf8/nkf.c index d98511fd2..136ebf28d 100644 --- a/ext/nkf/nkf-utf8/nkf.c +++ b/ext/nkf/nkf-utf8/nkf.c @@ -6086,8 +6086,8 @@ options(unsigned char *cp) input_endian = ENDIAN_BIG; } enc_idx = enc_idx == UTF_16 - ? (output_endian == ENDIAN_LITTLE ? UTF_16LE : UTF_16BE) - : (output_endian == ENDIAN_LITTLE ? UTF_32LE : UTF_32BE); + ? (input_endian == ENDIAN_LITTLE ? UTF_16LE : UTF_16BE) + : (input_endian == ENDIAN_LITTLE ? UTF_32LE : UTF_32BE); input_encoding = nkf_enc_from_index(enc_idx); } continue; |
