Project

General

Profile

Backport #5601

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

Added by jaco (Eric Jacoboni) almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
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

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

Associated revisions

Revision 3f8c4ba7
Added by usa (Usaku NAKAMURA) over 7 years ago

merge revision(s) 33603:

  • file.c (file_expand_path): reset coderange after expanding path.

[Backport #5601] [Backport #5629]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 34435
Added by usa (Usaku NAKAMURA) over 7 years ago

merge revision(s) 33603:

  • file.c (file_expand_path): reset coderange after expanding path.

[Backport #5601] [Backport #5629]

History

#1

Updated by nobu (Nobuyoshi Nakada) almost 8 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 8 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.

#3

Updated by nobu (Nobuyoshi Nakada) almost 8 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 7 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF