e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B
IO e$B$N30It%(%s%3!<%G%#%s%0$HFbIt%(%s%3!<%G%#%s%0$,Ey$7$$>l9g$K!"e(B
e$BJQ49$,I,MW$J>l9g$G$b!"JQ49$,5/$-$^$;$s!#e(B
$ cat t.rb
encoding:euc-jp
io = File.open(‘t.txt’, ‘w+’, { :internal_encoding => “SJIS” } )
io.write(“e$B$[$2e(B”)
$ ruby-1.9 -v -Esjis t.rb
ruby 1.9.2dev (2009-04-04 trunk 23134) [i686-linux]
$ nkf --guess t.txt
EUC-JP
e$B@.@%$G$9!#e(B
e$B$H$j$"$($:@h$K$3$A$i$r!#e(B
sheepman wrote:
e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B
IO e$B$N30It%(%s%3!<%G%#%s%0$HFbIt%(%s%3!<%G%#%s%0$,Ey$7$$>l9g$K!"e(B
e$BJQ49$,I,MW$J>l9g$G$b!"JQ49$,5/$-$^$;$s!#e(B
$ cat t.rb
encoding:euc-jp
io = File.open(‘t.txt’, ‘w+’, { :internal_encoding => “SJIS” } )
io.write(“e$B$[$2e(B”)
e$BFbIt%(%s%3!<%G%#%s%0$N@Dj$O!"=q$-9~$;~$N%(%s%3!<%G%#%s%0JQ49$K$O1F6A$7$^$;$s!#e(B
e$B$^$?e(Bdefault_externale$B$b!"=q$-9~$_;~$N%(%s%3!<%G%#%s%0JQ49$K$O1F6A$7$^$;$s!#e(B
e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B
On Sun, 5 Apr 2009 22:08:19 +0900
“NARUSE, Yui” [email protected] wrote:
e$BFbIt%(%s%3!<%G%#%s%0$N@Dj$O!"=q$-9~$;~$N%(%s%3!<%G%#%s%0JQ49$K$O1F6A$7$^$;$s!#e(B
e$B$^$?e(Bdefault_externale$B$b!"=q$-9~$_;~$N%(%s%3!<%G%#%s%0JQ49$K$O1F6A$7$^$;$s!#e(B
e$B1F6A$7$F$$$k$h$&$G$9!#e(B
$ cat t.rb
encoding:euc-jp
io = File.open(‘t.txt’, ‘w+’, { :internal_encoding => “EUC-JP”} )
io.write(“e$B$[$2e(B”)
$ ruby-1.9 -v -Esjis t.rb
ruby 1.9.2dev (2009-04-04 trunk 23134) [i686-linux]
$ nkf --guess t.txt
Shift_JIS
e$B@.@%$G$9!#e(B
sheepman wrote:
e$BFbIt%(%s%3!<%G%#%s%0$N@Dj$O!"=q$-9~$;~$N%(%s%3!<%G%#%s%0JQ49$K$O1F6A$7$^$;$s!#e(B
e$B$^$?e(Bdefault_externale$B$b!"=q$-9~$_;~$N%(%s%3!<%G%#%s%0JQ49$K$O1F6A$7$^$;$s!#e(B
e$B1F6A$7$F$$$k$h$&$G$9!#e(B
e$B$&!<$$
!"3N$+$K!#e(B
e$B$A$g$C$He(B[ruby-dev:38276]e$B$b4^$a$F:F@0M}$7$^$9!#e(B
e$B%A%1%C%He(B #1353 e$B$,99?7$5$l$^$7$?!#e(B (by Takashi T.)
e$B$3$s$K$A$Oe(B sheepman e$B$G$9!#e(B
e$B$3$N7o$O7k6I$I$&$J$C$?$N$G$7$g$&$+e(B?
e$B@.@%$G$9!#e(B
sheepman wrote:
e$BFbIt%(%s%3!<%G%#%s%0$N@Dj$O!"=q$-9~$;~$N%(%s%3!<%G%#%s%0JQ49$K$O1F6A$7$^$;$s!#e(B
e$B$^$?e(Bdefault_externale$B$b!"=q$-9~$_;~$N%(%s%3!<%G%#%s%0JQ49$K$O1F6A$7$^$;$s!#e(B
e$B1F6A$7$F$$$k$h$&$G$9!#e(B
e$B$&!<$$
!"3N$+$K!#e(B
e$B$A$g$C$He(B[ruby-dev:38276]e$B$b4^$a$F:F@0M}$7$^$9!#e(B
http://redmine.ruby-lang.org/issues/show/1353
e$B%A%1%C%He(B #1353 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)
e$B%9%F!<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B
Applied in changeset r23976.
http://redmine.ruby-lang.org/issues/show/1353