[前][次][番号順一覧][スレッド一覧]

ruby-changes:6449

From: naruse <ko1@a...>
Date: Wed, 9 Jul 2008 09:50:55 +0900 (JST)
Subject: [ruby-changes:6449] Ruby:r17965 (trunk): * ext/nkf/nkf-utf8/nkf.c (options): use input_endian.

naruse	2008-07-09 09:50:37 +0900 (Wed, 09 Jul 2008)

  New Revision: 17965

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17965

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

  Modified files:
    trunk/ChangeLog
    trunk/ext/nkf/nkf-utf8/nkf.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 17964)
+++ ChangeLog	(revision 17965)
@@ -1,3 +1,7 @@
+Wed Jul  9 09:12:11 2008  NARUSE, Yui  <naruse@r...>
+
+	* ext/nkf/nkf-utf8/nkf.c (options): use input_endian.
+
 Wed Jul  9 01:38:37 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* string.c (rb_str_succ): alphabets or numerics mutually enclosing
Index: ext/nkf/nkf-utf8/nkf.c
===================================================================
--- ext/nkf/nkf-utf8/nkf.c	(revision 17964)
+++ ext/nkf/nkf-utf8/nkf.c	(revision 17965)
@@ -6086,8 +6086,8 @@
 		    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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]