Project

General

Profile

Actions

Bug #3975

closed

German Umlaut in environment variable breaks usage of FileUtils

Added by bugmenot (bugmenot bugmenot) over 13 years ago. Updated almost 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
Backport:
[ruby-core:32880]

Description

=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

Actions #1

Updated by naruse (Yui NARUSE) over 13 years ago

  • Priority changed from 5 to Normal

=begin

=end

Actions #2

Updated by naruse (Yui NARUSE) over 13 years ago

  • Status changed from Open to Feedback

=begin
The error message:
"fileutils.rb:1247:in mkdir "\x81" to UTF-8 in conversion from Windows-1525 to UTF-8 (Encoding::UndefinedConversionError)"
is strange; we didn't support the encoding named Windows-1525.
=end

Updated by naruse (Yui NARUSE) almost 13 years ago

  • 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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0