Project

General

Profile

Actions

Backport #5601

closed

Ruby 1.9.3 fails to compile in directories with accent in their names

Added by jaco (Eric Jacoboni) almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Assignee:
-
[ruby-core:40860]

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 '


Related issues 2 (0 open2 closed)

Related to Backport193 - Backport #5533: Pathname's raising "invalid sequence"Closedyugui (Yuki Sonoda)11/01/2011Actions
Has duplicate Backport193 - Backport #5629: Windows環境で日本語を含むパスに対して、File.expand_path が存在しないパスを返すパターンが存在する。Closed11/14/2011Actions
Actions #1

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.

Actions #3

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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0