ruby-changes:6777
From: naruse <ko1@a...>
Date: Thu, 31 Jul 2008 17:14:59 +0900 (JST)
Subject: [ruby-changes:6777] Ruby:r18293 (trunk): * transcode.c (get_replacement_character): fix: invalid byte sequence
naruse 2008-07-31 17:12:08 +0900 (Thu, 31 Jul 2008) New Revision: 18293 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18293 Log: * transcode.c (get_replacement_character): fix: invalid byte sequence is always replaced "\x00?". Modified files: trunk/ChangeLog trunk/transcode.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18292) +++ ChangeLog (revision 18293) @@ -1,3 +1,8 @@ +Thu Jul 31 17:00:10 2008 NARUSE, Yui <naruse@r...> + + * transcode.c (get_replacement_character): fix: invalid byte sequence + is always replaced "\x00?". + Thu Jul 31 16:37:03 2008 NARUSE, Yui <naruse@r...> * test/rubygems/test_gem_ext_configure_builder.rb Index: transcode.c =================================================================== --- transcode.c (revision 18292) +++ transcode.c (revision 18293) @@ -136,16 +136,16 @@ if (rb_enc_asciicompat(enc)) { return "?"; } - else if (utf16be_encoding = enc) { + else if (utf16be_encoding == enc) { return "\x00?"; } - else if (utf16le_encoding = enc) { + else if (utf16le_encoding == enc) { return "?\x00"; } - else if (utf32be_encoding = enc) { + else if (utf32be_encoding == enc) { return "\x00\x00\x00?"; } - else if (utf32le_encoding = enc) { + else if (utf32le_encoding == enc) { return "?\x00\x00\x00"; } else { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/