Fwd: [ruby-cvs:21983] Ruby:r14746 (trunk): * transcode.c (transcode_dispatch): allows transcoding fr

e$BCfED$5$s!"$3$s$K$A$O!#e(B

e$B0J2<$N%Q%C%A$“$j$,$H$&$4$6$$$^$7$?!#e(BUS-ASCII e$BMQ$NJQ49$be(B
e$BI,MW$@$m$&$H%P%/$b$?$^$K;W$C$F$$$^$7$?$,!”%W%m%0%i%`$7$?e(B
e$B$H$-$K$$$D$bK:$l$^$7$?!#e(B

e$B$H$3$m$G!“$3$A$i$G$O!”%G!<%?$rMQ0U$7$F$b$&$^$/JQ49$G$-$ke(B
e$B$N$G$O$J$$$+$H;W$C$F$$$^$9$,!"@lMQ$N%3!<%I$,I,MW$G$7$g$&$+!#e(B

e$B$=$l$K!"e(BASCII-8BIT e$B$Oe(B 8BIT
e$B$J$N$GH,%S%C%H$G$9$,!“JQ49$Oe(B
e$B<7%S%C%H$7$+$G$-$^$;$s$h$M!#<7%S%C%H$N$b$N$N@5<0L>>N$Oe(B
US-ASCII e$B$G!”$3$l$Oe(B ASCII-8BIT e$B$HJL$Ke(B enc/
e$B$GB8:]$7$F$$$^$9$,!"e(B
e$B$3$l$bBP1~$7$?J}$,$$$$$G$9$h$M!#e(B

e$B$A$J$_$K!"e(BEncoding.based_encoding
e$B$N%a%>%IL>$O0z$C$+$+$j$d$9$/!"e(B
Encoding.base_encoding e$B$NJ}$,0lHLE*$N$G$O$J$$$+$H;W$$$^$9!#e(B

e$B59$7$/$*4j$$$7$^$9!#e(B Martin.

Date: Fri, 28 Dec 2007 01:55:07 +0900 (JST)
From: [email protected]
Subject: [ruby-cvs:21983] Ruby:r14746 (trunk): * transcode.c
(transcode_dispatch): allows transcoding from/to
To: [email protected]

 ASCII-8BIT.

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14746&r2=14745
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/transcode.c?r1=14746&r2=14745

#-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-# http://www.sw.it.aoyama.ac.jp mailto:[email protected]

e$B$J$+$@$G$9!#e(B

At Fri, 28 Dec 2007 14:03:48 +0900,
Martin D. wrote in [ruby-dev:32848]:

e$B$H$3$m$G!"$3$A$i$G$O!"%G!<%?$rMQ0U$7$F$b$&$^$/JQ49$G$-$ke(B
e$B$N$G$O$J$$$+$H;W$C$F$$$^$9$,!"@lMQ$N%3!<%I$,I,MW$G$7$g$&$+!#e(B

e$B$=$l$K!"e(BASCII-8BIT e$B$Oe(B 8BIT e$B$J$N$GH,%S%C%H$G$9$,!“JQ49$Oe(B
e$B<7%S%C%H$7$+$G$-$^$;$s$h$M!#<7%S%C%H$N$b$N$N@5<0L>>N$Oe(B
US-ASCII e$B$G!”$3$l$Oe(B ASCII-8BIT e$B$HJL$Ke(B enc/ e$B$GB8:]$7$F$$$^$9$,!"e(B
e$B$3$l$bBP1~$7$?J}$,$$$$$G$9$h$M!#e(B

ASCIIe$B$H$$$&$+!"e(Braw
bytee$B$H$NJQ49$H$$$&0UL#9g$$$+$i$OJL07$$$7$F$be(B
e$B$$$$$N$G$O$J$$$+$H;W$$$^$7$?!#e(B

e$B$A$J$_$K!"e(BEncoding.based_encoding e$B$N%a%>%IL>$O0z$C$+$+$j$d$9$/!"e(B
Encoding.base_encoding e$B$NJ}$,0lHLE*$N$G$O$J$$$+$H;W$$$^$9!#e(B

e$BD>$7$^$7$?!#e(B

At 19:52 07/12/28, Nobuyoshi N. wrote:

e$B$3$l$bBP1~$7$?J}$,$$$$$G$9$h$M!#e(B

ASCIIe$B$H$$$&$+!"e(Braw bytee$B$H$NJQ49$H$$$&0UL#9g$$$+$i$OJL07$$$7$F$be(B
e$B$$$$$N$G$O$J$$$+$H;W$$$^$7$?!#e(B

e$B8=:_$ON>J}F1$8$h$&$K07$C$F$$$^$9$,!">-Mh$K$Oe(B undefined e$B$He(B
invalid e$B$N6hJL$K$J$k$He(B
“\x80”.force_encoding(‘US-ASCII’).encode … => invalid
e$B$7$+$7e(B
“\x80”.force_encoding(‘US-ASCII’).encode … => undefined
e$B$N$h$&$K$A$g$C$H$@$1$N:9$,$D$/$+$H;W$$$^$9!#e(B

e$B$A$J$_$K!"e(BEncoding.based_encoding e$B$N%a%>%IL>$O0z$C$+$+$j$d$9$/!"e(B
Encoding.base_encoding e$B$NJ}$,0lHLE*$N$G$O$J$$$+$H;W$$$^$9!#e(B

e$BD>$7$^$7$?!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#e(B Martin.

#-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-# http://www.sw.it.aoyama.ac.jp mailto:[email protected]