Encoding.default_internal $B$N$?$a$N%Q%C%A(B

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:36572] Re: Encoding.default_internal
e$B$N$?$a$N%Q%C%Ae(B”
on Sep.25,2008 23:58:20, [email protected] wrote:

e$B$=$&$J$s$G$9$+!#;d$K$Oe(Bascii compatiblee$B$H$$$&@-<A$r<:$&$3$H$Ke(B
e$B$OBgJQBg$-$JDq93$,$"$j$^$9!#B>$N?M$N0U8+$bJ9$-$?$$$H$3$m$G$9!#e(B

e$B$3$N7o$K4X$7$F$O!“e(BCompatibilityErrore$B$G$$$$$H;W$$$^$9!#e(B
e$B$?$@!“e(BUTF-16LEe$B$KB7$($k$H$$$&;EMM$b0cOB46$O$”$j$^$;$se(B(e$B$^$D$b$He(B
e$B$5$s$HF1MM$N0cOB46$O$”$j$^$9$,e(B)e$B!#e(B

e$B85$NOC$^$GLa$k$H!“%(%s%3!<%G%#%s%0$,0[$J$kJ8;zNs$N7k9g$,86B’e(B
e$B$H$7$F$G$-$J$$$H$$$&$N$Oe(Bruby
m17ne$B$N;EMM$J$o$1$G!“e(B"text=#{str}”
e$B$Ge(Bstre$B$,e(BUTF-16e$B$N;~Nc30$K$J$k$N$Oe(Bm17ne$B$NIT40A4$5$NNc$K$O$J$i$J$$e(B
e$B$H;W$$$^$9!#e(B
e$B$I$C$A$+$H$$$&$He(Bstre$B$,e(BASCII
compatiblee$B$J;~$KFCJL07$$$G$G$-$A$ce(B
e$B$&J}$,IT40A4$5$G$”$k$H$$$&$+!"$^$"e(Brubye$B$C$]$$MxJX@-M%@h$H$$$&e(B
e$B46$8$G$9$,!#e(B

e$B$=$l$G$O!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36583] Re: Encoding.default_internal
e$B$N$?$a$N%Q%C%Ae(B”
on Fri, 26 Sep 2008 03:37:32 +0900, “NARUSE, Yui”
[email protected] writes:

|Yukihiro M. wrote:
|> e$B$^$"!"e(B-Ue$B%*%W%7%g%s$O;d$b9M$($?$s$G$9$1$I$M!#$?$@!"7k6I!“e(B
|> default_internale$B$H$7$Fe(BUTF-8e$B$r!V?d>)!W$9$k$3$H$K$J$k$N$G!”$$$Ce(B
|> e$B$=$=$A$i$r%G%U%)%k%H$K$9$kJ}$,e(B{e$B$$$5$.$h$$e(B|e$B%H!<%?%k$N%3%9%H:oe(B
|> e$B8:$K$J$ke(B}e$B$H46$8$^$7$?!#e(B
|
|e$B$D$^$k$H$3$m!"e(B-L e$B%G%U%)%k%H$+e(B -U e$B%G%U%)%k%H$+$G9M$($?7k2L!“e(B
|-U e$B%G%U%)%k%H$NJ}$,$h$$$H9M$($?$?$a!”$3$N$h$&$J0F$K$J$C$?$H$$$&$3$H$G$9$h$M!#e(B

e$B$=$&$$$&$3$H$G$9$M!#e(B

|e$B7k6I$N$H$3$m!“e(BRuby 1.9 e$B$K$$$$F$O!"e(B
|e$B8=<BE
$KJQ$($i$l$kHO0O$G$O8=>u$O$=$l$J$j$K%P%i%s%9$N<h$l$?$b$N$G$”$j!“e(B
|Encoding.default_internal e$B$r%G%U%)%k%He(B nil e$BF3F~$”$?$j$,8BEY$8$c$J$$$+$H;W$$$^$9!#e(B

e$B$A$g$C$HF,$rNd$d$7$F9M$($^$7$?!#$3$N7o$K$D$$$F$J$k$;$5$s$N$*$Ce(B
e$B$7$c$k$3$H$OBEEv$@$H46$8$^$7$?$N$G!"%G%U%)%k%HFbIt%3!<%Ie(B
UTF-8e$B$He(B-Le$B$O0z$C9~$a$k$3$H$K$7$^$9!#0J2<$,?7$7$$I=$G$9!#e(B

         default_external   default_internal

±------±------------------±------------------+
|(e$B$J$7e(B) | locale | - |
|-E e | e | - |
|-E e:i | e | i |
| -U | locale | UTF-8 |
±------±------------------±------------------+

e$B:#2s!“!Ve(B-E :ie$B!W$H$$$&AH$_9g$o$;$,>C$($F$^$9$,!”$3$l$Oe(B
e$B>-Mh!Ve(Blocalee$B!W$H$$$&%(%s%3!<%G%#%s%0e(B(e$B<B:]$Oe(Blocalee$B$,<($9%(%se(B
e$B%3!<%G%#%s%0$X$N%(%$%j%"%9e(B)e$B$rF3F~$7$F!Ve(B-E
locale:ie$B!W$H=q$$$?e(B
e$BJ}$,L@3N$G$O$J$$$+$H;W$C$F$N$3$H$G$9!#e(B

|> |> e$B8=:_$G$O4pK\e(BUnicodee$B$G9=$o$J$$$H$O;W$$$^$9$,!“%Q%9L>$K$D$$$F$Oe(B
|> |> e$BJQ49$KH<$&%G!<%?%m%9$G%U%!%$%k$,8+$D$1$i$l$J$$;vBV$rHr$1$k$3e(B
|> |> e$B$H$r9M$($J$1$l$P$J$j$^$;$s!#>e$G$O!VL$Dj!W$H=q$$$F$$$^$9$,!“e(B
|> |> e$B!VJQ49$K<:GT$7$?;~$K$O%P%$%J%j!W$H$$$&$N$,8=<BE*$JBP=h$G$O$Je(B
|> |> e$B$$$+$H;W$$$^$9!#e(B
|> |
|> |e$BKh2se(B roundtrip e$B$9$k$3$H$r3NG’$7$^$9$+$M$‘!#e(B
|> |e$B$G!"La$i$J$+$C$?$i85$Ne(B encoding e$B$N$^$^JV$9$H$+!#e(B
|> |ASCII-8BIT e$B$r$D$1$A$c$&$N$OITJX$J$s$8$c$J$$$+$H;W$$$^$9!#e(B
|>
|> e$B3NG’$N<jCJ$O$H$b$+$/!”!V85$Ne(Bencodinge$B!W$H$Oe(Bdefault_externale$B$Ge(B
|> e$B$9$+$M!#$^$”!“$=$l$O$=$l$G$R$H$D$NA*Br;h$@$H$O;W$$$^$9!#e(B
|
|e$B$$$(!”$=$l$>$l$Ne(B IO#external_encoding e$B$G$9!#e(B

e$B$(!<$H!“$h$/$o$+$i$J$+$C$?$N$G$9$,!”>e5-$Ge(Bdefault_externale$B$He(B
e$B=q$$$?;~$KG0F,$KCV$$$F$$$?$N$Oe(BDir.entriese$B$J$I$,JV$9%Q%9$G$9!#e(B
Dire$B$K$Oe(Bexternal_encodinge$B$H$$$&B0@-$O$"$j$^$;$s$+$i!“A*$Y$k$Ne(B
e$B$Oe(Bdefault_externale$B$G$O$J$$$+$H!#B>$KBP>]$K$J$k$N$Oe(BARGVe$B$K4^$^e(B
e$B$l$kJ8;zNs$G$9$,!”$3$l$be(BIOe$B$G$O$J$$$G$9$M!#e(B

e$B$^$?!"e(BIOe$B$K$D$$$F$Oe(Bexternal_encodinge$B$H$7$F;XDj$5$l$?$b$N$r?.e(B
e$B$8$k$N$,4pK\86B’$G!"e(Broundtripe$B$9$k$+$I$&$+$N%A%'%C%/$O>-Mh$be(B
e$B9T$o$J$$$H;W$$$^$9!#%3%9%H$,9b$9$.$k$N$G!#e(B

                            e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36578] Re: Encoding.default_internal
e$B$N$?$a$N%Q%C%Ae(B”
on Fri, 26 Sep 2008 01:08:08 +0900, “NARUSE, Yui”
[email protected] writes:

|> e$B$H$O$$$(!"$=$N$h$&$Ke(B-Ee$B$,J#?t;XDj$5$l$?>l9g$K!V$U$5$o$7$$F0:n!We(B
|> e$B$H$$$&$N$ODj5A$G$-$J$$$h$&$K;W$$$^$9!#$@$H$9$k$H%(%i!<$7$+BPe(B
|> e$B1~$7$h$&$,$J$$$N$G$O$J$$$G$7$g$&$+!#e(B
|
|e$B8=>u$O4D6-JQ?t$H%9%/%j%W%H$H30$H$G=gHV$KFI$s$G$$$C$F!“e(B
|e$B8e$N$G>e=q$-$H$$$&%k!<%k$@$C$?$O$:$G$9!#e(B
|e$B$J$N$G!”$^$!!"Dj5A$O$G$-$^$9!#e(B

e$B>e5-$NJ8$O!V>e=q$-$O$U$5$o$7$$F0:n$G$O$J$$e(B(e$B5sF0$,M=A[$7$,$?$$e(B
e$B$+$ie(B)e$B!W$H$$$&0U8+$NI=L@$G$b$"$j$^$9!#e(B

e$B>e=q$-$7$F$&$l$7$$%1!<%9$C$F$“$j$^$9$+!)e(B
e$B$”$k$$$O>e=q$-$5$l$Je(B
e$B$$$H$&$l$7$/$J$$%1!<%9$O!)e(B
e$B$=$&$$$&$N$,$“$l$P!”>e=q$-$rG’$a$ke(B
e$B$N$K$d$V$5$+$G$J$$$G$9!#e(B

In article [email protected],
Yukihiro M. [email protected] writes:

e$B>e5-$NJ8$O!V>e=q$-$O$U$5$o$7$$F0:n$G$O$J$$e(B(e$B5sF0$,M=A[$7$,$?$$e(B
e$B$+$ie(B)e$B!W$H$$$&0U8+$NI=L@$G$b$"$j$^$9!#e(B

e$B>e=q$-$7$F$&$l$7$$%1!<%9$C$F$“$j$^$9$+!)e(B e$B$”$k$$$O>e=q$-$5$l$Je(B
e$B$$$H$&$l$7$/$J$$%1!<%9$O!)e(B e$B$=$&$$$&$N$,$“$l$P!”>e=q$-$rG’$a$ke(B
e$B$N$K$d$V$5$+$G$J$$$G$9!#e(B

e$B$3$N$“$?$j$K4X$7$F$$$m$$$m$H9M$($F$$$k$N$G$9$,!“K<A$O%b%8%e!<e(B
e$B%k2=$NLdBj$G$”$m$&!”$H;W$C$F$$$^$9!#e(B

e$B$“$k?M$,$”$k%3!<%I$r=q$/$H$-!"$=$N%3!<%I$Oe(B Unicode e$B@lMQ$H9Me(B
e$B$($F=q$/$+$b$7$l$J$$$7!“e(BEUC-JP e$B@lMQ$H9M$($F=q$/$+$b$7$l$J$$e(B
e$B$7!”$I$s$J%(%s%3!<%G%#%s%0$K$bBP1~$G$-$k$H9M$($F=q$/$+$b$7$le(B
e$B$^$;$s!#e(B

e$B$^$?!“e(BOS e$B$d%M%C%H%o!<%/$N@h$J$I$N303&$b!”$=$l$>$lFH<+$KJ8;ze(B
e$B%3!<%I$K4X$9$k2>Dj$r$b$C$F$$$^$9!#e(B

e$B$$$:$l$K$7$F$b$=$&$$$&$+$?$^$j$,%b%8%e!<%ke(B (e$B0lHL2=$7$F303&$Ne(B
e$BB8:_$b%b%8%e!<%k$H$7$F9M$($^$7$g$&e(B) e$B$H$7$F$“$C$?$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default_internal e$B$H$$$&$N$O$3$3$G$$$&e(B
e$B%b%8%e!<%k$r%W%m%;%9$G6a;w$9$k$b$N$G$9!#e(B

e$B$^$?!“e(B[ruby-dev:36548] e$B$K$”$k!“e(B
Encoding.with_internal(Encoding::UTF8) { … }
e$B$O!”$3$3$G$$$&%b%8%e!<%k$r%@%$%J%_%C%/%9%3!<%W$G6a;w$9$k$b$Ne(B
e$B$G$7$g$&!#e(B

e$BF1MM$Ke(B (e$B$d$O$je(B [ruby-dev:36548] e$B$G?($l$i$l$F$$$ke(B)
e$B%^%8%C%/%3e(B
e$B%a%s%H$H$$$&$N$O!"%U%!%$%kC10L$N%l%-%7%+%k%9%3!<%W$H9M$($k$3e(B
e$B$H$,=PMh$^$9!#e(B

e$B:G=i$K=R$Y$?$h$&$K!"%3!<%I$,$I$N$h$&$J0U?^$G<BAu$5$l$?$+$H$$e(B
e$B$&$3$H$r5-=R$9$k$K$O!"5-=R$H@k8@$,@EE*$KBP1~$9$k%l%-%7%+%k%9e(B
e$B%3!<%W$,E,@Z$@$H9M$($i$l$^$9!#e(B

e$B%W%m%;%9$d%@%$%J%_%C%/%9%3!<%W$r%b%8%e!<%k$NC10L$H$7$F;H$&$H!"e(B
e$B%3!<%I$N5-=R<T$N0U?^$H@k8@$,?)$$0c$&$3$H$,5/$3$j$^$9!#$3$l$,e(B
e$B%b%8%e!<%k2=$NLdBj$G$9!#e(B

Encoding.default_internal e$B$O%W%m%;%9$G$R$H$D$H$$$&6a;w$r9T$&e(B
e$B$N$G%W%m%;%9Fb$N%b%8%e!<%k$,J#?t$N%(%s%3!<%G%#%s%0$r;H$&$HGKe(B
e$BC>$9$k$o$1$G$9!#e(B

e$B$5$F!"GKC>$7$J$$HO0O$G;H$&%1!<%9$r9M$($^$9!#$=$&$9$k$H!"e(B
Encoding.default_internal e$B$O%W%m%0%i%<+?H$N@-<A$G$9$+$i!"%=!<e(B e$B%9%3!<%I$K=q$$$F$*$-$?$$$H$3$m$G$9!#e(B Encoding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G$9e(B

In message “Re: [ruby-dev:36601] Re: Encoding.default_internal
e$B$N$?$a$N%Q%C%Ae(B”
on Fri, 26 Sep 2008 13:11:18 +0900, Tanaka A. [email protected]
writes:

|e$B:G=i$K=R$Y$?$h$&$K!"%3!<%I$,$I$N$h$&$J0U?^$G<BAu$5$l$?$+$H$$e(B
|e$B$&$3$H$r5-=R$9$k$K$O!"5-=R$H@k8@$,@EE*$KBP1~$9$k%l%-%7%+%k%9e(B
|e$B%3!<%W$,E,@Z$@$H9M$($i$l$^$9!#e(B

e$B%j%F%i%k$J$I$N%(%s%3!<%G%#%s%0$H0c$C$F!"F~NO$d=PNO$KH<$&%(%se(B
e$B%3!<%G%#%s%0$r%l%-%7%+%k$K7hDj$9$k$3$H$OFq$7$=$&$G$9$M!#>/$Je(B
e$B$/$H$b;d$K$O$I$&$d$C$F<B8=$7$?$b$N$+A[A|$b$D$-$^$;$s!#e(B

|e$B$5$F!"GKC>$7$J$$HO0O$G;H$&%1!<%9$r9M$($^$9!#$=$&$9$k$H!"e(B
|Encoding.default_internal e$B$O%W%m%0%i%<+?H$N@-<A$G$9$+$i!"%=!<e(B |e$B%9%3!<%I$K=q$$$F$*$-$?$$$H$3$m$G$9!#e(B |Encoding.default_external e$B$O303&$N@-<A$G$9$+$i!"303&$N>u67$Ke(B |e$B1~$8$F;XDj$7$?$$$H$3$m$G$9!#e(B |e$B$3$l$i$U$?$D$OFHN)$J$N$G!"e(B-E e$B$,N>J}$r;XDj$9$k$H$7$?$i!">e=qe(B |e$B$-$G$O$"$j$^$;$s$,!"JRJ}$:$D;XDj$7$?$$$H$$$&$3$H$O$"$jF@$k$Ge(B |e$B$7$g$&!#$=$l$,e(B [ruby-dev:36554] e$B$N;XE&$@$H9M$($i$l$^$9!#e(B |e$B%(%i!<$K$J$k$N$O$I$A$i$+0lJ}$,e(B 2e$B2s0J>ee(B (e$B$"$k$$$Oe(B 2e$B<oN0J>ee(B)
|e$B;XDj$5$l$?;~$HDj5A$9$k$N$OAGD>$JOC$@$H;W$$$^$9!#e(B

e$BG<F@$G$-$kOC$G$9!#e(B(e$B$^$@<BAu$7$F$$$^$;$s$,e(B)e$B%(%i!<$,H/@8$9$ke(B
e$B$N$OL@$i$+$KL7=b$9$k;~e(B(e$B>e5-$N!Ve(B2e$B2s0J>e;XDj$5$l$?;~!We(B)e$B$K8B$ke(B
e$B$h$&$KCm0U$7$^$9!#e(B

                            e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)

In article [email protected],
Yukihiro M. [email protected] writes:

e$B%j%F%i%k$J$I$N%(%s%3!<%G%#%s%0$H0c$C$F!"F~NO$d=PNO$KH<$&%(%se(B
e$B%3!<%G%#%s%0$r%l%-%7%+%k$K7hDj$9$k$3$H$OFq$7$=$&$G$9$M!#>/$Je(B
e$B$/$H$b;d$K$O$I$&$d$C$F<B8=$7$?$b$N$+A[A|$b$D$-$^$;$s!#e(B

e$B$($'!“9M$(J}$H$7$F$O$H$b$+$/!”$$$^$9$0<BAu$K7k$S$D$1$k$H$$$&e(B
e$BOC$G$O$J$$$H;W$C$F$$$^$9!#e(B

e$BKNIt$G$9!#e(B

Yukihiro M. e$B$5$s$O=q$-$^$7$?e(B:

1.9.1e$B$K4^$a$J$$$H$$$&A*Br$Oe(B

  • 1.9.2e$B$KF~$l$k$N$G$OHs8_49@-$,Bg$-$$e(B
  • 2.0e$B$^$GBT$D$N$O@h$,1s$9$.$ke(B

e$B$N$G!"$I$J$?$+$,;d$r@Q6KE*$K@bF@$7$J$$8B$j!":NMQ$7$?$/$"$j$^e(B
e$B$;$s!#e(B

(e$B$J$s$GHs8_49$,Bg$-$$$H<+3P$7$F$$$J$,$ie(Bfreezee$B8e$KF~$l$h$&$H$9$k$N$+K\Eve(B
e$B$KM}2r$K6l$7$`$,!"$=$l$O$5$F$$-!“e(B)e$B;d$Oe(B2.0e$B$rBT$D$N$,BEEv$G$”$k$H?.$8$F$$e(B
e$B$^$9!#e(BRubye$B$Ne(Bm17ne$B%G%6%$%s$O2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b$N$+A[A|$b$D$-$^$;$s!#e(B

e$B$"$kDxEY:FMxMQ$r9M$($?%W%m%0%i%`$G$O$=$b$=$b!“2DG=$+$bJ,$+$i$J$$FCDj$N%(e(B
e$B%s%3!<%G%#%s%0$X$NJQ49$r2DG=$J8B$jHr$1$F%(%s%3!<%G%#%s%0FHN)$J%3!<%I$r=qe(B
e$B$/$Y$-$G$9!#e(B
e$B9M$($F$_$k$H!“e(Bdefault_internale$B$,4r$7$$%1!<%9$H$$$&$N$O!”$d$O$jC;$$%9%/%je(B
e$B%W%H$r=q$/>l9g$G$7$g$&!#$H$3$m$,!”$=$N$h$&$J%1!<%9$G$O303&$N%(%s%3!<%G%#e(B
e$B%s%0e(B(default_external)e$B$r$=$N$^$^FbIt$G=hM}$9$l$P$h$$$N$G$"$C$F!"$D$^$je(B
default_internale$B$Oe(Bnil(e$BL5JQ49e(B)e$B$GNI$$$N$G$9!#e(B

e$B$7$F$_$k$H!"!V40`z$J?6$kIq$$$rDj5A$G$-$J$$$J$i$PITMW!W$H$$$&$N$Oe(B1e$B$D$NEze(B
e$B$($G$O$J$$$G$7$g$&$+!#e(B

At 02:25 08/09/28, Yukihiro M. wrote:

e$B%3!<%G%#%s%0$r%l%-%7%+%k$K7hDj$9$k$3$H$OFq$7$=$&$G$9$M!#>/$Je(B
e$B$/$H$b;d$K$O$I$&$d$C$F<B8=$7$?$b$N$+A[A|$b$D$-$^$;$s!#e(B

|e$B$5$F!"GKC>$7$J$$HO0O$G;H$&%1!<%9$r9M$($^$9!#$=$&$9$k$H!“e(B
|Encoding.default_internal e$B$O%W%m%0%i%`<+?H$N@-<A$G$9$+$i!”%=!<e(B
|e$B%9%3!<%I$K=q$$$F$*$-$?$$$H$3$m$G$9!#e(B
|Encoding.default_external e$B$O303&$N@-<A$G$9$+$i!“303&$N>u67$Ke(B
|e$B1~$8$F;XDj$7$?$$$H$3$m$G$9!#e(B
|e$B$3$l$i$U$?$D$OFHN)$J$N$G!“e(B-E e$B$,N>J}$r;XDj$9$k$H$7$?$i!”>e=qe(B
|e$B$-$G$O$”$j$^$;$s$,!“JRJ}$:$D;XDj$7$?$$$H$$$&$3$H$O$”$jF@$k$Ge(B
|e$B$7$g$&!#$=$l$,e(B [ruby-dev:36554] e$B$N;XE&$@$H9M$($i$l$^$9!#e(B

e$B$=$&$G$9!#EDCf$5$s$NF|K\8l$O$3$A$i$h$jM%$l$F$$$k$N$OEvA3$H$7$F$b!“e(B
e$B$b$N$9$4$/J,$+$j$d$9$/@bL@$7$F$”$j$,$H$&$4$6$$$^$9!#e(B

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

|e$B%(%i!<$K$J$k$N$O$I$A$i$+0lJ}$,e(B 2e$B2s0J>ee(B (e$B$"$k$$$Oe(B 2e$B<oN`0J>ee(B)
|e$B;XDj$5$l$?;~$HDj5A$9$k$N$OAGD>$JOC$@$H;W$$$^$9!#e(B

e$BG<F@$G$-$kOC$G$9!#e(B(e$B$^$@<BAu$7$F$$$^$;$s$,e(B)e$B%(%i!<$,H/@8$9$ke(B
e$B$N$OL@$i$+$KL7=b$9$k;~e(B(e$B>e5-$N!Ve(B2e$B2s0J>e;XDj$5$l$?;~!We(B)e$B$K8B$ke(B
e$B$h$&$KCm0U$7$^$9!#e(B

                           e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)

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

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36624] Re: Encoding.default_internal
e$B$N$?$a$N%Q%C%Ae(B”
on Mon, 29 Sep 2008 21:09:24 +0900, “Yugui (Yuki S.)”
[email protected] writes:

|e$B<B$OK\7o$K$D$$$Fe(BRailse$BJY6/2qe(B@e$BEl5~$GC}$C$F$_$?$N$G$9$,!“e(BRubyiste$B$?$A$+$i$Oe(B
|e$B0U30$JH?1~$,JV$C$F$-$^$7$?!#e(B
|
| * default_intern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D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36673] Re: Encoding.default_internal
e$B$N$?$a$N%Q%C%Ae(B”
on Tue, 7 Oct 2008 17:48:28 +0900, “Shugo M.”
[email protected] writes:

|2008/09/26 11:26 Yukihiro M. [email protected]:
|> 1.9.1e$B$K4^$a$J$$$H$$$&ABr$Oe(B
|>
|> * 1.9.2e$B$KF~$l$k$N$G$OHs8_49@-$,Bg$-$$e(B
|> * 2.0e$B$^$GBT$D$N$O@h$,1s$9$.$ke(B
|>
|> e$B$N$G!"$I$J$?$+$,;d$r@Q6KE
$K@bF@$7$J$$8B$j!“:NMQ$7$?$/$”$j$^e(B
|> e$B$;$s!#e(B
|
|e$B$=$N8e$N5DO@$Ge(Bdefault_internale$B$N%G%U%)%k%HCM$Oe(Bnile$B$H$$$&7kO@$K$J$C$F$$$k$N$G!“e(B
|e$B>e5-$NA0Ds$OJx$l$F$$$k$h$&$K;W$$$^$9$,!”$$$+$,$G$7$g$&$+!#e(B

e$B3N$+$K$3$NH/8@;~$KF~$l$h$&$H$$$C$F$$$?$b$N$H!“8=:_$N7kO@$H$Oe(B
e$B<c430[$J$j$^$9$,!”>e5-$N!VHs8_49@-$,Bg$-$$!W!"!Ve(B2.0e$B$O1s$9$.e(B
e$B$k!W$H$$$&FsE@[email protected])$9$k$H;W$$$^$9!#e(B

[ruby-core:18985]e$B$N%Q%C%A$r%Y!<%9$K:#F|L@F|$K$bF~$l$k$D$b$je(B
e$B$G$7$?!#e(B

                            e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)

e$BA0ED$G$9!#e(B

2008/09/26 11:26 Yukihiro M. [email protected]:

1.9.1e$B$K4^$a$J$$$H$$$&A*Br$Oe(B

  • 1.9.2e$B$KF~$l$k$N$G$OHs8_49@-$,Bg$-$$e(B
  • 2.0e$B$^$GBT$D$N$O@h$,1s$9$.$ke(B

e$B$N$G!“$I$J$?$+$,;d$r@Q6KE*$K@bF@$7$J$$8B$j!”:NMQ$7$?$/$"$j$^e(B
e$B$;$s!#e(B

e$B$=$N8e$N5DO@$Ge(Bdefault_internale$B$N%G%U%)%k%HCM$Oe(Bnile$B$H$$$&7kO@$K$J$C$F$$$k$N$G!“e(B
e$B>e5-$NA0Ds$OJx$l$F$$$k$h$&$K;W$$$^$9$,!”$$$+$,$G$7$g$&$+!#e(B

At 17:48 08/10/07, Shugo M. wrote:

e$B$=$N8e$N5DO@$Ge(Bdefault_internale$B$N%G%U%)%k%HCM$Oe(Bnile$B$H$$$&7kO@$K$J$C$F$$$k$N$G!“e(B
e$B>e5-$NA0Ds$OJx$l$F$$$k$h$&$K;W$$$^$9$,!”$$$+$,$G$7$g$&$+!#e(B

e$B$=$&$G$9$,!"$=$l$K$h$C$F=>Mh$N%3!<%I$X$N1F6A$bBgJ,8:$C$F$$$^$9$N$G!“e(B
e$BAa$a$K$$$l$k$N$OLdBj$J$$$H;W$$$^$9!#4{$Ke(B Michael Selig e$B$+$ie(B
e$BBgJ,$^$D$b$H;0$NDs0F$K6a$$e(B patch
e$B$,$”$j$^$9$N$G!"Aa$a$K$=$l$re(B
e$B<h$jF~$l$F4+$a$?J}$,$$$$$H;W$$$^$9!#I,MW$G$7$?$i$3$A$i$G$d$j$^$9!#e(B

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

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

e$BA0ED$G$9!#e(B

2008/10/07 18:46 Yukihiro M. [email protected]:

|e$B$=$N8e$N5DO@$Ge(Bdefault_internale$B$N%G%U%)%k%HCM$Oe(Bnile$B$H$$$&7kO@$K$J$C$F$$$k$N$G!“e(B
|e$B>e5-$NA0Ds$OJx$l$F$$$k$h$&$K;W$$$^$9$,!”$$$+$,$G$7$g$&$+!#e(B

e$B3N$+$K$3$NH/8@;~$KF~$l$h$&$H$$$C$F$$$?$b$N$H!“8=:_$N7kO@$H$Oe(B
e$B<c430[$J$j$^$9$,!”>e5-$N!VHs8_49@-$,Bg$-$$!W!"!Ve(B2.0e$B$O1s$9$.e(B
e$B$k!W$H$$$&FsE@[email protected])$9$k$H;W$$$^$9!#e(B

e$BL@<(E*$Ke(Bdefault_internale$B$NCM$r@Dj$7$J$$$+$.$j!“e(Bdefault_internale$B$rF3F~$9$kA0$He(B
e$BF1$85sF0$K$J$k$H;W$C$F$$$k$N$G$9$,!”>e5-$N!VHs8_49@-$,Bg$-$$!W$H$O$I$&$$$C$?0UL#e(B
e$B$G$7$g$&$+!#e(B
1.9.2e$B0J9
$G$I$&$$$C$?JQ99$,G’$a$i$l$k$N$+$,5$$K$J$C$F$$$^$9!#e(B