[Á°][¼¡][ÈÖ¹æ½ç°ìÍ÷][¥¹¥ì¥Ã¥É°ìÍ÷]

ruby-reference-manual:2908

From: 5 5 <redmine@r...>
Date: Thu, 10 Nov 2011 20:10:12 +0900
Subject: [ruby-reference-manual:2908] [¤ë¤ê¤Þ¥×¥í¥¸¥§¥¯¥È - Bug #5587] UndefinedConversionError#error_char.patch ¤ÎÎã


Issue #5587 has been updated by 5 5.


¤È¤Æ¤âʬ¤«¤ê¤ä¤¹¤¤¤´ÀâÌÀ¤ò¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£¤Ê¤ë¤Û¤É¡£
¡Ê"\x80" ¤¸¤ã¤Ê¤¯¤Æ "\A0" ¤Ç¤¹¤è¤Í¡Ë

Ãæ´Ö¥³¡¼¥É¤Î¸ºß¤Ë¤è¤Ã¤Æ¡¤°ì¸«Ìõ¤Îʬ¤«¤é¤Ê¤¤·ë²Ì¤Ë¤Ê¤ë¤³¤È¤¬¤¢¤ë¡¤¤È¤¤¤¦Îã¤È¤·¤Æ¤ÏŬ¤·¤Æ¤¤¤Þ¤¹¤¬¡¤²òÀ⤬¤Ê¤¤¤Èʬ¤«¤ê¤Þ¤»¤ó¡£

ñ¤Ë error_char ¤ÎƯ¤­¤òÎ㼨¤¹¤ë¤À¤±¤Ê¤é¡¤Ãæ´Ö¥³¡¼¥É¤¬Ìµ¤¤Îã¤Î¤Û¤¦¤¬¤¤¤¤¤Î¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£

"»³ùõ".encode("Shift_JIS") ¤È¤« "G\u{f6}del".encode("ASCII") ¤ß¤¿¤¤¤Ê¡£
----------------------------------------
Bug #5587: UndefinedConversionError#error_char.patch ¤ÎÎã
http://redmine.ruby-lang.org/issues/5587

Author: 5 5
Status: Open
Priority: Low
Assignee: Ippei Obayashi
Category: doc
Target version: 
reporter: 
ruby_version: 1.9


r4885 ¤ÇÄɲ䵤줿 UndefinedConversionError#error_char ¤Î¼Â¹ÔÎã¤Ç¡¤"\xA0" ¤¬ÊÑ´¹¤Ç¤­¤Ê¤¯¤Æ error_char ¤ò¸«¤¿¤é "\xC2\xA0" ¤À¤Ã¤¿¡¤¤È¤¤¤¦¤Î¤¬¤¢¤ê¤Þ¤¹¤¬¡¤²¿¤«¤Î´Ö°ã¤¤¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡©

Index: refm/api/src/_builtin/Encoding
===================================================================
--- refm/api/src/_builtin/Encoding	(revision 4888)
+++ refm/api/src/_builtin/Encoding	(working copy)
@@ -665,7 +665,7 @@
   begin
     ec.convert("\xa0")
   rescue Encoding::UndefinedConversionError
-    puts $!.error_char.dump   #=> "\xC2\xA0"
+    puts $!.error_char.dump   #=> "\xA0"
     p $!.error_char.encoding  #=> #<Encoding:UTF-8>
   end
 



-- 
http://redmine.ruby-lang.org

--
ML: ruby-reference-manual@m...
Info: http://QuickML.com/

[Á°][¼¡][ÈÖ¹æ½ç°ìÍ÷][¥¹¥ì¥Ã¥É°ìÍ÷]

      2902 2011-11-08 02:16 [redmine@r...        ] [¤ë¤ê¤Þ¥×¥í¥¸¥§¥¯¥È - Bug #5587][Open] UndefinedConversionError#error_char.patch ¤ÎÎã
      2903 2011-11-09 07:25 ¨²[ohai@k...           ] [¤ë¤ê¤Þ¥×¥í¥¸¥§¥¯¥È - Bug #5587] UndefinedConversionError#error_char.patch ¤ÎÎã
      2904 2011-11-09 07:53 ¨²[ohai@k...           ] [¤ë¤ê¤Þ¥×¥í¥¸¥§¥¯¥È - Bug #5587] UndefinedConversionError#error_char.patch ¤ÎÎã
      2906 2011-11-09 16:49 ¨²[redmine@r...        ] [¤ë¤ê¤Þ¥×¥í¥¸¥§¥¯¥È - Bug #5587] UndefinedConversionError#error_char.patch ¤ÎÎã
      2907 2011-11-10 08:44 ¨²[ohai@k...           ] [¤ë¤ê¤Þ¥×¥í¥¸¥§¥¯¥È - Bug #5587] UndefinedConversionError#error_char.patch ¤ÎÎã
->    2908 2011-11-10 12:10 ¨²[redmine@r...        ] [¤ë¤ê¤Þ¥×¥í¥¸¥§¥¯¥È - Bug #5587] UndefinedConversionError#error_char.patch ¤ÎÎã
      2909 2011-11-11 16:13 ¨±[ohai@k...           ] [¤ë¤ê¤Þ¥×¥í¥¸¥§¥¯¥È - Bug #5587][Closed] UndefinedConversionError#error_char.patch ¤ÎÎã