Issue #3975 has been updated by Yui NARUSE.

Status changed from Feedback to Rejected

I close this as Rejected since no feedback provided.
Please reopen this if it still happens on the latest version of ruby.
----------------------------------------
Bug #3975: German Umlaut in environment variable breaks usage of FileUtils
http://redmine.ruby-lang.org/issues/3975

Author: bugmenot bugmenot
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.2p0 (2010-08-18) [i386-mingw32]


=begin
 Hi,
 
 when having a german Umlaut (??, ??, ??, ?) in an environment variable, the usage of FileUtils seems to break, because it can't handle the conversion to UTF-8.
 
 Example:
 ENV['USERPROFILE'] is "C:\\Users\Name├╝"
 
 Using:
 path = ENV['USERPROFILE']
 FileUtils.cp_r "#{path}/blah/" "#{path}/blah2"
 
 results in "fileutils.rb:1247:in mkdir "\x81" to UTF-8 in conversion from Windows-1525 to UTF-8 (Encoding::UndefinedConversionError)" because the "├╝" can't be converted.
=end



-- 
http://redmine.ruby-lang.org