Replica と alias の違い(encoding)

e$BLZB<$G$9!#e(B

Windowse$BHG$Ne(BRuby1.9e$B$G$N%G%U%)%k%H%(%s%3!<%G%#%s%0$N$H$-$K$A$g$C$HL>A0$,e(B
e$B$G$F$$$F5$$K$J$C$F$$$?$N$G$9$,!"%l%W%j%+e(B(replica) e$B$He(B
e$B%(%$%j%"%9e(B (alias)
e$B$N0c$$$C$F$J$s$G$7$g$&$+e(B?

e$B%l%W%j%+e(B e$B"*e(B
e$B<BBN$r%3%T!<$9$k$7$F$=$N%3%T!<$KL>A0$r$D$1$ke(B
e$B%(%$%j%"%9e(B e$B"*e(B e$B<BBN$r6&M-$7$?>e$GL>A0$r$D$1$ke(B

e$B$+$J$"$H;W$C$?$N$G$9$,!"<B:]$N%3!<%I$r8+$F$b<+?.$,[email protected]$re(B
[email protected]$1$k$H$"$j$,$?$$$G$9!#$3$3$r8+$m$H$$$&%]%$%s%?;X<($G$be(B
e$B$+$^$$$^$;$se(B(e$B1Q8l$G$+$+$l$F$$$F$b2D$G$9e(B)e$B!#e(B

e$B$h$m$7$/$*4j$$$7$^$9!#e(B

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

In message Re: [ruby-dev:32946] replica e$B$He(B alias
e$B$N0c$$e(B(encoding)
on Mon, 7 Jan 2008 15:00:25 +0900, KIMURA Koichi
[email protected] writes:

|Windowse$BHG$Ne(BRuby1.9e$B$G$N%G%U%)%k%H%(%s%3!<%G%#%s%0$N$H$-$K$A$g$C$HL>A0$,e(B
|e$B$G$F$$$F5$$K$J$C$F$$$?$N$G$9$,!"%l%W%j%+e(B(replica) e$B$He(B e$B%(%$%j%"%9e(B (alias)
|e$B$N0c$$$C$F$J$s$G$7$g$&$+e(B?
|
|e$B%l%W%j%+e(B e$B"*e(B e$B<BBN$r%3%T!<$9$k$7$F$=$N%3%T!<$KL>A0$r$D$1$ke(B
|e$B%(%$%j%"%9e(B e$B"*e(B e$B<BBN$r6&M-$7$?>e$GL>A0$r$D$1$ke(B
|
|e$B$+$J$"$H;W$C$?$N$G$9$,!"<B:]$N%3!<%I$r8+$F$b<+?.$,[email protected]$re(B
|[email protected]$1$k$H$"$j$,$?$$$G$9!#$3$3$r8+$m$H$$$&%]%$%s%?;X<($G$be(B
|e$B$+$^$$$^$;$se(B(e$B1Q8l$G$+$+$l$F$$$F$b2D$G$9e(B)e$B!#e(B

e$B$=$l$G9=$$$^$;$s!#%l%W%j%+$O%3%T!<$r$7$?8e$G4X?t$N$$$/$D$+$re(B
e$B>e=q$-$9$k$3$H$b2DG=$G$9!#e(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:32946] replica e$B$He(B alias
e$B$N0c$$e(B(encoding)
on Jan.07,2008 15:00:25, [email protected] wrote:
| Windowse$BHG$Ne(BRuby1.9e$B$G$N%G%U%)%k%H%(%s%3!<%G%#%s%0$N$H$-$K$A$g$C$HL>A0$,e(B
| e$B$G$F$$$F5$$K$J$C$F$$$?$N$G$9$,!"%l%W%j%+e(B(replica) e$B$He(B e$B%(%$%j%"%9e(B (alias)
| e$B$N0c$$$C$F$J$s$G$7$g$&$+e(B?
|
| e$B%l%W%j%+e(B e$B"*e(B e$B<BBN$r%3%T!<$9$k$7$F$=$N%3%T!<$KL>A0$r$D$1$ke(B
| e$B%(%$%j%"%9e(B e$B"*e(B e$B<BBN$r6&M-$7$?>e$GL>A0$r$D$1$ke(B
|
| e$B$+$J$"$H;W$C$?$N$G$9$,!"<B:]$N%3!<%I$r8+$F$b<+?.$,[email protected]$re(B
| [email protected]$1$k$H$"$j$,$?$$$G$9!#$3$3$r8+$m$H$$$&%]%$%s%?;X<($G$be(B
| e$B$+$^$$$^$;$se(B(e$B1Q8l$G$+$+$l$F$$$F$b2D$G$9e(B)e$B!#e(B

e$B$3$3e(B(ruby-dev)[email protected]@$,$"$C$?$h$&$J5$$,$9$k$s$G$9$,!"$$$6C5$9e(B
e$B$H8+Ev$?$i$J$$$G$9$M!#e(B

replicae$B$He(Baliase$B$NM}[email protected]$7$$$H;W$$$^$9!#e(B
[email protected]$($P!"A0<T$,e(Bdupe$B$G8e<T$,C1$J$kBeF~$H$$$&$3$H$G!#e(B

m17ne$B$G$O$3$N0c$$$,$I$&1F6A$9$k$+$H$$$&$H!e(Btranscodee$B$G$NJQ49=he(B
e$BM}$K$$$$F!"e(Breplicae$B$O85$N%(%s%3!<%G%#%s%0$HJL$NJQ49%k!<%A%s$re(B
e$B3d$jEv$F$k$3$H$,2DG=e(B(e$BF1$8$^$^[email protected]$1$Ie(B)e$B$G$9$,!"e(Baliase$B$Ge(B
e$B$O$=$l$,$G$-$J$$$H$+!"e(Baliase$BF1;N$OF10l$N%(%s%3!<%G%#%s%0$H$_$Je(B
e$B$5$l$k$H$$$&$+<B:]F10l$J$N$Ge(BStringe$B%
%V%8%%/%H$NA`:n$J$I$GLde(B
e$BBj$O5/$-$J$$$1$l$Ie(Breplicae$B$G$OF10l$G$O$J$$$N$GNc$Ne(Bdiffere$B$J%(%ie(B
e$B!<$,5/$-$k$H$+!$=$&$$$&$3$H$K$J$j$^$9!#e(B

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

e$BLZB<$G$9!#e(B

e$B$^$D$b$H$5$s!e(B(e$B$&e(B)e$B$5$s!$"$j$,$H$&$4$6$$$^$9!#e(B
e$B=EH"$N6y$G?=$7Lu$J$$$s$G$9$,!"[email protected]$5$;$F$/[email protected]$5$$!#e(B

On Mon, 7 Jan 2008 15:06:19 +0900
Yukihiro M. [email protected] wrote:

|e$B%l%W%j%+e(B e$B"*e(B e$B<BBN$r%3%T!<$9$k$7$F$=$N%3%T!<$KL>A0$r$D$1$ke(B
|e$B%(%$%j%"%9e(B e$B"*e(B e$B<BBN$r6&M-$7$?>e$GL>A0$r$D$1$ke(B
|
|e$B$+$J$"$H;W$C$?$N$G$9$,!"<B:]$N%3!<%I$r8+$F$b<+?.$,[email protected]$re(B
|[email protected]$1$k$H$"$j$,$?$$$G$9!#$3$3$r8+$m$H$$$&%]%$%s%?;X<($G$be(B
|e$B$+$^$$$^$;$se(B(e$B1Q8l$G$+$+$l$F$$$F$b2D$G$9e(B)e$B!#e(B

e$B$=$l$G9=$$$^$;$s!#%l%W%j%+$O%3%T!<$r$7$?8e$G4X?t$N$$$/$D$+$re(B
e$B>e=q$-$9$k$3$H$b2DG=$G$9!#e(B

On Mon, 7 Jan 2008 15:14:10 +0900
U.Nakamura [email protected] wrote:

m17ne$B$G$O$3$N0c$$$,$I$&1F6A$9$k$+$H$$$&$H!e(Btranscodee$B$G$NJQ49=he(B
e$BM}$K$$$$F!"e(Breplicae$B$O85$N%(%s%3!<%G%#%s%0$HJL$NJQ49%k!<%A%s$re(B
e$B3d$jEv$F$k$3$H$,2DG=e(B(e$BF1$8$^$^[email protected]$1$Ie(B)e$B$G$9$,!"e(Baliase$B$Ge(B
e$B$O$=$l$,$G$-$J$$$H$+!"e(Baliase$BF1;N$OF10l$N%(%s%3!<%G%#%s%0$H$_$Je(B
e$B$5$l$k$H$$$&$+<B:]F10l$J$N$Ge(BStringe$B%
%V%8%%/%H$NA`:n$J$I$GLde(B
e$BBj$O5/$-$J$$$1$l$Ie(Breplicae$B$G$OF10l$G$O$J$$$N$GNc$Ne(Bdiffere$B$J%(%ie(B
e$B!<$,5/$-$k$H$+!$=$&$$$&$3$H$K$J$j$^$9!#e(B

alias e$B$r$D$/$j!"$=$l$KBP$7$F$?$H$($P4X?t$r>e=q$-$7$?>l9g$K!"e(B

e$B!&Nc30$b$7$/$O%(%i!<$,H/@8$9$ke(B
e$B!&A`:n<+BN$ODL$k$1$I2?$,5/$3$k$+$o$+$i$J$$e(B

e$B$N$I$A$i$G$7$g$&$+e(B?

e$B$^$?!"$"$k%(%s%3!<%G%#%s%0$Ne(Breplicae$B$r:[email protected]$7!"$=$N8e$G$=$Ne(Breplicae$B$Ke(B
e$BBP$9$ke(B
aliase$B$r:[email protected]$7$F$+$i$=$Ne(Baliase$B$KBP$7$FA:n!"Nc$($P4X?t$N>e=q$-e(B e$B$r9T$C$?>l9g$O$I$&$J$j$^$9$+e(B? #e$B%7%9%F%$K85$+$i$"$k$b$N$N>e=q$-$O%@%a$G$b!"$=$N%3%T!<$KBP$9$ke(B
#e$BA`:n$O2DG=$+$I$&$+$H$$$&<q;]$G$9!#e(B

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

In message Re: [ruby-dev:32949] Re: replica e$B$He(B alias
e$B$N0c$$e(B(encoding)
on Mon, 7 Jan 2008 17:09:46 +0900, KIMURA Koichi
[email protected] writes:

|alias e$B$r$D$/$j!"$=$l$KBP$7$F$?$H$($P4X?t$r>e=q$-$7$?>l9g$K!"e(B
|
|e$B!&Nc30$b$7$/$O%(%i!<$,H/@8$9$ke(B
|e$B!&A`:n<+BN$ODL$k$1$I2?$,5/$3$k$+$o$+$i$J$$e(B
|
|e$B$N$I$A$i$G$7$g$&$+e(B?

e$BA`:n<+BN$ODL$j$^$9!#Nc30$b%(%i!<$b5/$-$^$;$se(B(Ce$B$G$9$+$ie(B)e$B!#e(B
e$B$G$O$J$K$,5/$-$k$+$H$$$&$H!"85$N%(%s%3!<%G%#%s%0$b=q$-49$o$Ce(B
e$B$F$7$^$$$^$9!#JLL>$G$9$+$i!#e(B

|e$B$^$?!"$"$k%(%s%3!<%G%#%s%0$Ne(Breplicae$B$r:[email protected]$7!"$=$N8e$G$=$Ne(Breplicae$B$Ke(B
|e$BBP$9$ke(B aliase$B$r:[email protected]$7$F$+$i$=$Ne(Baliase$B$KBP$7$FA:n!"Nc$($P4X?t$N>e=q$-e(B |e$B$r9T$C$?>l9g$O$I$&$J$j$^$9$+e(B? |#e$B%7%9%F%$K85$+$i$"$k$b$N$N>e=q$-$O%@%a$G$b!"$=$N%3%T!<$KBP$9$ke(B
|#e$BA`:n$O2DG=$+$I$&$+$H$$$&<q;]$G$9!#e(B

replicee$B$N4X?t$,=q$-49$o$j$^$9!#$=$l$O$*$=$i$/$OK>$`$3$H$G$Oe(B
e$B$J$$$H;W$$$^$9$,!#e(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:32949] Re: replica e$B$He(B alias
e$B$N0c$$e(B(encoding)
on Jan.07,2008 17:09:46, [email protected] wrote:
| alias e$B$r$D$/$j!"$=$l$KBP$7$F$?$H$($P4X?t$r>e=q$-$7$?>l9g$K!"e(B
|
| e$B!&Nc30$b$7$/$O%(%i!<$,H/@8$9$ke(B
| e$B!&A`:n<+BN$ODL$k$1$I2?$,5/$3$k$+$o$+$i$J$$e(B
|
| e$B$N$I$A$i$G$7$g$&$+e(B?

e$B%(%s%3!<%G%#%s%0$Oe(BRubye$B%l%Y%k$G$Oe(BEncodinge$B%*%V%8%%/%H$H$7$F8+e(B
e$B$($^$9$,!"<BBN$Oe(BCe$B%l%Y%k$G$N$_A:n2DG=$G$"$j!"e(Breplicae$B$de(Baliase$B$He(B e$B$$$&$N$be(BCe$B%l%Y%k$Ne(BAPIe$B$K$h$kA:n$G$9!#e(B
e$B$J$N$G$?$V$s<ALd$N0U?^<+BN$,$:$l$F$$$k$N$G$O$J$$$+$H;W$$$^$9!#e(B

| e$B$^$?!"$"$k%(%s%3!<%G%#%s%0$Ne(Breplicae$B$r:[email protected]$7!"$=$N8e$G$=$Ne(Breplicae$B$Ke(B
| e$BBP$9$ke(B aliase$B$r:[email protected]$7$F$+$i$=$Ne(Baliase$B$KBP$7$FA:n!"Nc$($P4X?t$N>e=q$-e(B | e$B$r9T$C$?>l9g$O$I$&$J$j$^$9$+e(B? | #e$B%7%9%F%$K85$+$i$"$k$b$N$N>e=q$-$O%@%a$G$b!"$=$N%3%T!<$KBP$9$ke(B
| #e$BA`:n$O2DG=$+$I$&$+$H$$$&<q;]$G$9!#e(B

e$B$G!"3F%(%s%3!<%G%#%s%0$Oe(BCe$B%l%Y%k$N9=B$BN$H7k$S$D$$$F$$$k$o$1$Ge(B
e$B$9$,!e(Baliase$B$O%%j%8%J%k$HF1$89=B$BN%$%s%9%?%s%9$H7k$S$D$$$F$e(B
e$B$j!"0lJ}e(Breplicae$B$O%
%j%8%J%k$+$i%3%T!<$5$l$?9=B$BN%$%s%9%?%s%9e(B
e$B$H7k$S$D$$$F$$$^$9!#e(B
e$B$7$?$,$C$F!"e(Baliase$B$N4X?t$r>e=q$-$9$k$H$$$&$3$H$O%
%j%8%J%k$N9=e(B
e$BB$BN$N%a%s%P$G$$k4X?t%(%s%H%j$rCV$-49$($k$H$$$&$3$H$K$J$j$^e(B
e$B$9!#e(B
Ce$B%l%Y%k$G$9$+$i$d$m$&$H;W$($P$J$s$G$b$G$-$k$o$1$G$9$,!"IaDL$Ke(B
e$B$d$l$P!"e(B
aliase$B$N4X?t>e=q$-e(B == e$B%*%j%8%J%k$N4X?t>e=q$-e(B
replicae$B$N4X?t>e=q$-e(B == replicae$B$N4X?t>e=q$-e(B
replicae$B$Ne(Baliase$B$N4X?t>e=q$-e(B == replicae$B$N4X?t>e=q$-e(B
e$B$H$J$j$^$9!#e(B

e$B$=$l$G$O!#e(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:32952] Re: replica e$B$He(B alias
e$B$N0c$$e(B(encoding)
on Jan.07,2008 17:43:35, [email protected] wrote:
| e$B$o$?$7$NH/[email protected]$G$9$H!e(B[ruby-dev:32542] [ruby-dev:32885] e$B$$?$j$,$^$H$^$C$Fe(B
| e$B$$$^$9!#$3$NMQES$Ge(B replica e$B$rMQ$$$h$&$H$$$&$N$Oe(B [ruby-dev:32460] e$B$,=i$ae(B
| e$B$G$7$g$&$+!#e(B

e$B$"!<!";d$,8+$D$1$i$l$J$+$C$?!V$3$3e(B(ruby-dev)[email protected]@$,$"$C$?$he(B
e$B$&$J5$$,$9$k!W$H$$$&$N$Oe(B[ruby-dev:32885]e$B$G$7$?!#e(B

| # e$B$3$l$O$o$?$7$NM}2r$J$N$G4V0c$C$F$$$k$H$3$m$O%D%C%3%_$/[email protected]$5$$e(B

e$B4V0c$$$H$$$&$+!"?^$Ge(B CP932 e$B$X$NLp0u$N$H$3$m$K$bK\Ev$Oe(B
(alias)
e$B$,F~$k$O$:$J$N$,H4$1$F$$$^$9$M!#e(B
e$B$=$&$$$&=EH"$N6y$r=|[email protected][email protected]$H;W$$$^$9!#$"$j$,$He(B
e$B$&$4$6$$$^$9!#e(B

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

[email protected]@%$G$9!#e(B

KIMURA Koichi wrote:

Windowse$BHG$Ne(BRuby1.9e$B$G$N%G%U%)%k%H%(%s%3!<%G%#%s%0$N$H$-$K$A$g$C$HL>A0$,e(B
e$B$G$F$$$F5$$K$J$C$F$$$?$N$G$9$,!"%l%W%j%+e(B(replica) e$B$He(B e$B%(%$%j%"%9e(B (alias)
e$B$N0c$$$C$F$J$s$G$7$g$&$+e(B?

e$B%l%W%j%+e(B e$B"*e(B e$B<BBN$r%3%T!<$9$k$7$F$=$N%3%T!<$KL>A0$r$D$1$ke(B
e$B%(%$%j%"%9e(B e$B"*e(B e$B<BBN$r6&M-$7$?>e$GL>A0$r$D$1$ke(B

e$B$+$J$"$H;W$C$?$N$G$9$,!"<B:]$N%3!<%I$r8+$F$b<+?.$,[email protected]$re(B
[email protected]$1$k$H$"$j$,$?$$$G$9!#$3$3$r8+$m$H$$$&%]%$%s%?;X<($G$be(B
e$B$+$^$$$^$;$se(B(e$B1Q8l$G$+$+$l$F$$$F$b2D$G$9e(B)e$B!#e(B

e$B$o$?$7$NH/[email protected]$G$9$H!e(B[ruby-dev:32542] [ruby-dev:32885]
e$B$$?$j$,$^$H$^$C$Fe(B
e$B$$$^$9!#$3$NMQES$Ge(B replica e$B$rMQ$$$h$&$H$$$&$N$Oe(B
[ruby-dev:32460] e$B$,=i$ae(B
e$B$G$7$g$&$+!#e(B

e$BC<E*$K$$$($P!"e(B
replica : e$B!Ve(Bencodinge$B!W$rDj5A$9$ke(B
alias : e$B!Ve(Bencoding e$BL>e(Be$B!W$rDj5A$9$ke(B
e$B$H$$$&$3$H$K$J$j$^$9!#e(B

e$B?^$K$9$k$H$?$V$s0J2<$N$h$&$J46$8$G$9!#e(B
e$B54<Ve(B(CES)
OnigEncodingSJIS
e$B(""+(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!($e(B
e$B(!(!(!(+(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(+(!(!(!(!(!(!(!(!(!(!(!(!(!(!e(B
e$B("e(B e$B("e(B Encoding
(e$BJ8;z=89ge(B+CES)
e$B("e(B e$B(e(B
#Encoding:Shift_JIS e$B(!e(B(replica)e$B*e(B #Encoding:Windows-31J
e$B("e(B e$B("e(B e$B("e(B
e$B("e(B
e$B(!(!(!(+(!(!(!(!(!(+(!(!(!(!(!(!(!(!(!(!(!(+(!(!(!(!(!(+(!(!(!(!(!(!(!(!e(B
e$B("e(B (alias) e$B("e(B
e$B("e(B Encodinge$BL>e(B
e$B(e(B e$B-e(B e$B("e(B
e$B("e(B (charsete$BL>e(B)
Shift_JIS SJIS Windows-31J CP932

e$B54<VAX$He([email protected]$G$O$J$$$N$G$9$,JX59>e$3$&$7$F$*$-$^$9!#e(B

Encoding e$BAXe(B e$B$G$Ne(B #Encoding:Shift_JIS e$B$N<BBNe(B

rb_encoding* e$B$OF1$8$b$Ne(B

e$B54<VAX$G$OJ8;zC10L$NA`:n$r9T$C$F$$$^$9!#6qBNE*$K$Oe(B str[n]
e$B$,2?$rJV$9$+!"e(B
str.length e$B$O$I$N$/$i$$$+!#$^$?e(B String#valid_encoding? e$B$Ne(B
true/false e$BH=e(B
e$BDj$b$3$N%l%Y%k$G$9!#54<VAX$N<BBN$O!"J8;z$N:G>.%P%$%H?t$H:GBg%P%$%H?t$N;Xe(B
e$BDj$d!"J8;zNs$ND9$5$r;;=P$9$k4X?t!"BgJ8;z$r>.J8;z$KJQ49$9$k4X?tEy$r$R$H$^e(B
e$B$H$a$K$7$?9=B$BNe(B OnigEncodingType e$B$G!6qBNE*$K$Oe(B
ONIG_ENCODING_ASCII e$B$de(B
ONIG_ENCODING_SJIS e$BEy$,$$j$^$9!#e(B

Encoding
e$BAX$G$OJ8;zNsA:nA4HL$r;J$j$^$9!#6qBNE*$K$OJ8;zNs$N7k9g2DG=!&Hfe(B e$B3S2DG=!"@55,I=8=$N%^%C%A2DG=H=Dj$,$3$NAX$G9T$o$l$F$$$^$9!#$3$NAX$G$N<BBNe(B e$B$Oe(B rb_encoding e$B$G$9!#e(BEncoding e$BAX$K$*$1$k<BBN$Oe(B e$B54<V$,e(B native e$B$KBP1~$7$Fe(B e$B$$$ke(B encoding e$B$+$iD>7k$7$F$$$ke(B original encodinge$B!"e(Boriginal encoding e$B$+$ie(B replicate e$B$5$l$?e(B replica encodinge$B!"54<V$,BP1~$7$F$$$J$$e(B encoding e$B$KJX59e(B e$BE*$KM?$($i$l$ke(B dummy encoding e$B$Ne(B3e$B<oN$KJ,$1$k$3$H$,$G$-$^$9!#$3$l$i$r8+e(B
e$BJ,$1$k$K$Oe(B Encoding#base_encoding e$B$de(B Encoding#dummy?
e$B$r8+$k$o$1$G$9$,!e(B
e$B8+$?$+$i$I$&$H$$$&$3$H$G$b$$j$^$;$s!#e(B

e$B$3$l$i$N6hJL$rD61[$9$kB8:$,e(B 7bit e$B$N$[email protected]$5$l$?J8;zNs$G!"e(B
String#ascii_only? e$B$GH=Dj2DG=$G$9!#$3$l$,??$K$J$kJ8;zNs$O$$$+$J$ke(B
encoding e$B$NJ8;zNs$H$b7k9g!&Hf3S2DG=$H$J$j$^$9!#e(B

e$B$J$*!"e(Brb_encoding e$B$Oe(B OnigEncodingType
e$B$NF1$8$b$N$N$?$a!"e(BEncoding e$BAX$G$Ne(B
replica e$B$G$b!"54<V%l%Y%k$N=t4X?t!"Nc$($PJ8;z72$Ke(B Unicode Property
Name
e$B$rM?$($?$j!"e(Bvalid
e$B$J%P%$%HNs$NHO0O$rDj5A$7D>$9$3$H$,2DG=$G$9!#!Je(B[ruby-
dev:32947]
e$B$G$N!V%l%W%j%+$O%3%T!<$r$7$?8e$G4X?t$N$$$/$D$+$r>e=q$-$9$k$3e(B
e$B$H$b2DG=!W$H$O$?$V$s$3$N$3$H!Ke(B

Encodinge$BL>AX$O!"e(BEncoding.find() e$B$9$k$?$a$N%F!<%V%k$G$9!#e(B
ENC_TABLE = {
Shift_JIS => Encoding::Shift_JIS,
Windows-31J => Encoding::Windows_31J,
EUC-JP => Encoding::EUC_JP
}
ENC_TABLE_ALIAS = {
SJIS => Encoding::Shift_JIS,
CP932 => Encoding::Windows_31J,
EUCJP => Encoding::EUC_JP
}
def rb_enc_alias(alias, orig)
ENC_TABLE_ALIAS[alias] = orig
end
def Encoding.find(name)
return ENC_TABLE[name] if ENC_TABLE[encname]
return ENC_TABLE_ALIAS[name] if ENC_TABLE_ALIAS[encname]
return -1
end
e$B$H$$$&9=B$$K$J$C$F$$$k$H$*9M$($/[email protected]$5$$!#e(Balias
e$B$GDI2C$5$l$?L>A0$O!"J8;zNse(B
e$B$+$ie(B rb_encoding e$B$r8!:w$9$k:]$K$N$_$KMQ$$$i$l$^$9!#e(B

e$B$=$N$?$a!"e(B[ruby-dev:32949] e$B$K$*$1$k!Ve(Balias

e$B$KBP$7$F4X?t$r>e=q$-!W$H$$e(B
e$B$&2>Dj$OB8:_$7$^$;$se(B

e$B$3$l$O$o$?$7$NM}2r$J$N$G4V0c$C$F$$$k$H$3$m$O%D%C%3%_$/[email protected]$5$$e(B

e$B$3$T$Z$7$d$9$$$h$&$K$3$N%a!<%k$NCx:n8"$OJ|4~$7$F$*$-$^$9!#e(B

e$BLZB<$G$9!#e(B

e$B$^$D$b$H$5$s!e(B(e$B$&e(B)e$B$5$s!@[email protected]%$5$s$"$j$,$H$&$4$6$$$^$9!#e(B

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

|e$B!&Nc30$b$7$/$O%(%i!<$,H/@8$9$ke(B
|e$B!&A`:n<+BN$ODL$k$1$I2?$,5/$3$k$+$o$+$i$J$$e(B
|
|e$B$N$I$A$i$G$7$g$&$+e(B?

e$BA`:n<+BN$ODL$j$^$9!#Nc30$b%(%i!<$b5/$-$^$;$se(B(Ce$B$G$9$+$ie(B)e$B!#e(B
e$B$G$O$J$K$,5/$-$k$+$H$$$&$H!"85$N%(%s%3!<%G%#%s%0$b=q$-49$o$Ce(B
e$B$F$7$^$$$^$9!#JLL>$G$9$+$i!#e(B

e$B$9$_$^$;$s!#[email protected]$i$:$G$7$?!#e(B

e$B9=B$BN$N9=B$$bGD0.$7$F$$$k?M$,D>@$$$8$l$P$I$&$H$G$b$G$-$k$H$$$&$Oe(B
e$BEvA3$G$9$,!"$?$H$($P=q$-49$(MQ$Ne(BAPIe$B$rMQ0U$7$F$$$F!"$=$l$r7PM3$9$ke(B
e$B$H$-$K$O%A%%C%/$5$l$k$H$+1>$&$3$H$,$"$k$+$J!#$H$$$&A0Ds$G$7$?!#e(B
#e$B4X?t%]%$%s%?$NN`$r<[email protected]Dj$G$-$k$N$OI]$$$+$J$H;W$C$?$N$G$9$,e(B
#e$B>/$79M$($F$
$l$P%]%$%s%[email protected]$K$"$k$N$,?.MQ$G$-$ke(B
#e$B4X?t$+$I$&$+$OH=CG$G$-$^$;$s$h$M!#e(B

U.Nakamura e$B$5$s$O=q$-$^$7$?e(B:

e$B%(%s%3!<%G%#%s%0$Oe(BRubye$B%l%Y%k$G$Oe(BEncodinge$B%*%V%8%%/%H$H$7$F8+e(B
e$B$($^$9$,!"<BBN$Oe(BCe$B%l%Y%k$G$N$_A:n2DG=$G$"$j!"e(Breplicae$B$de(Baliase$B$He(B e$B$$$&$N$be(BCe$B%l%Y%k$Ne(BAPIe$B$K$h$kA:n$G$9!#e(B
e$B$J$N$G$?$V$s<ALd$N0U?^<+BN$,$:$l$F$$$k$N$G$O$J$$$+$H;W$$$^$9!#e(B

e$B$O$$!#e(B
e$B>e$G=q$$$?$H$*[email protected]@ITB-$G!"e(BCe$B%l%Y%k$NA`:n$G$NOC$G$7$?!#e(B

replicae$B$N4X?t>e=q$-e(B == replicae$B$N4X?t>e=q$-e(B
replicae$B$Ne(Baliase$B$N4X?t>e=q$-e(B == replicae$B$N4X?t>e=q$-e(B
e$B$H$J$j$^$9!#e(B

e$B$O$$!#e(B
e$B$3$N>e=q$-$rKI8f$9$kJI$O$"$k$N$+$H$$$&<ALd$G$7$?!#e(B
e$B9=B$BN$rD>@=q$-49$($i$l$F$O$I$&$7$h$&$b$J$$$H;W$$$^$9$,e(B
#e$B%O%C%7%e$G$b7W;;$7$F$*$$$F!"9=B$BN$r;2>H$9$k$?$S$K%A%%C%/$9$k$H$+e(B?
#e$B=E$=$&e(B
[email protected]$C$?$i%A%%C%/$7$F$$$k$N$+$J$H!#e(B
e$B$9$$^$;$s!#$^[email protected]%=!<%9$NFI$$,B-$j$^$;$s$G$7$?!#e(B

NARUSE, Yui e$B$5$s$O=q$-$^$7$?e(B:

e$B$+$J$"$H;W$C$?$N$G$9$,!"<B:]$N%3!<%I$r8+$F$b<+?.$,[email protected]$re(B
[email protected]$1$k$H$"$j$,$?$$$G$9!#$3$3$r8+$m$H$$$&%]%$%s%?;X<($G$be(B
e$B$+$^$$$^$;$se(B(e$B1Q8l$G$+$+$l$F$$$F$b2D$G$9e(B)e$B!#e(B

e$B$o$?$7$NH/[email protected]$G$9$H!e(B[ruby-dev:32542] [ruby-dev:32885] e$B$$?$j$,$^$H$^$C$Fe(B
e$B$$$^$9!#$3$NMQES$Ge(B replica e$B$rMQ$$$h$&$H$$$&$N$Oe(B [ruby-dev:32460] e$B$,=i$ae(B
e$B$G$7$g$&$+!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#e(B
e$BG/Kv$N%a!<%[email protected]$C$?$N$GN.$7FI$_$G:Q$^$;$FFbMF$,F,$+$iH4$1Mn$A$F$$$?$h$&$G$9!#e(B

e$BC<E*$K$$$($P!"e(B
replica : e$B!Ve(Bencodinge$B!W$rDj5A$9$ke(B
alias : e$B!Ve(Bencoding e$BL>e(Be$B!W$rDj5A$9$ke(B
e$B$H$$$&$3$H$K$J$j$^$9!#e(B

e$B?^$K$9$k$H$?$V$s0J2<$N$h$&$J46$8$G$9!#e(B

e$B>:[email protected]@$"$j$,$H$&$4$6$$$^$9!#e(B
e$BG<[email protected]$7$^$7$?!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs