Backport #5601
closedRuby 1.9.3 fails to compile in directories with accent in their names
Description
Trying to compile ruby in a directory with a name containing accents fails :
To reproduce, use a directory named "Téléchargements" (as xdg-users-dir create it on some French Linux boxes).
Download the ruby tar archive, place it in this directory, untar it and then try the stanza "./configure && make" :
$ ./configure
(...)
$ make
(...)
linking miniruby
./tool/mkconfig.rb:11:in require': incompatible character encodings: ASCII-8BIT and US-ASCII (Encoding::CompatibilityError) from ./tool/mkconfig.rb:11:in
'
Updated by nobu (Nobuyoshi Nakada) almost 13 years ago
Eric Jacoboni wrote:
To reproduce, use a directory named "Téléchargements" (as xdg-users-dir create it on some French Linux boxes).
BTW, XDG's L10N strategy is completely wrong.
It was the way Microsoft had used last century, and has thrown away finally.
XDG is 10+ yrs behind.
Updated by jaco (Eric Jacoboni) almost 13 years ago
Agree with that... For my own, i never use accents nor spaces in my filenames or directory names. But the point is that installation process fails and that Linux boxes allow now UTF-8 encoded filenames... If Ruby is not able to compile in such a situation it should be at least mentionned in the README, IMHO.
Updated by nobu (Nobuyoshi Nakada) almost 13 years ago
- Tracker changed from Bug to Backport
- Project changed from Ruby master to Backport193
- Target version deleted (
1.9.3)
Seems to fix by backporting r33603.
Updated by usa (Usaku NAKAMURA) over 12 years ago
- Status changed from Open to Closed