[Bug #3347] Dir.tmpdir$B$,!"(Bfilesystem encoding$B$rJV$5$J$$(B

Bug #3347: Dir.tmpdire$B$,!"e(Bfilesystem encodinge$B$rJV$5$J$$e(B
http://redmine.ruby-lang.org/issues/show/3347

e$B5/I<<Te(B: Tohru Hashimoto
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
ruby -v: ruby 1.9.2dev (2010-05-25 revision 28010) [x86_64-linux]

Tmpfile.newe$B$Ne(Bbasenamee$B$re(BASCIIe$B0J30$NJ8;z$rEO$9$H%(%i!<$K$J$k$h$&$G$9!#e(B

% ruby -ve “Tempfile.new(‘e$B$[$2e(B’)” -rtempfile
ruby 1.9.2dev (2010-05-25 revision 28010) [x86_64-linux]
/home/sulky/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/tmpdir.rb:131:in
`expand_path’: incompatible character encodings: UTF-8 and US-ASCII
(Encoding::CompatibilityError)
from
/home/sulky/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/tmpdir.rb:131:in
`create’
from
/home/sulky/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/tempfile.rb:134:in
`initialize’
from -e:1:in `new’
from -e:1:in `’

e$BD4$Y$?$H$3$m!"e(BDir.tmpdire$B$NCf$G!"e(B[ENV[‘TMPDIR’], ENV[‘TMP’],
ENV[‘TEMP’]e$B$,$J$$>l9ge(B/tmpe$B$H$J$j%=!<%9%3!<%I$N%(%s%3!<%G%#%s%0$K$J$C$F$k$?$a$H;W$o$l$^$9!#e(B

e$B%A%1%C%He(B #3347 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r28039.
Tohru, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/3347