Bug #2332

Ruby doesn't run properly from unicode folder on windows

Added by Vit Ondruch over 2 years ago. Updated 9 months ago.

[ruby-core:26525]
Status:Closed Start date:11/04/2009
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:-
Target version:-
ruby -v:ruby 1.9.2dev (2009-10-15) [i386-mswin32_90]

Description

C:\>type test.rb
puts "hello"

C:\>Ruby\bin\ruby.exe test.rb
hello

C:\>раз\Ruby\bin\ruby.exe test.rb
Error loading gem paths on load path in gem_prelude
code converter not found (US-ASCII to UTF-8)
<internal:gem_prelude:defaults>:48:in `exist?'
<internal:gem_prelude:defaults>:48:in `default_path'
<internal:gem_prelude>:45:in `path'
<internal:gem_prelude>:226:in `push_all_highest_version_gems_on_load_path'
<internal:gem_prelude>:300:in `<compiled>'
hello

Related issues

related to ruby-trunk - Bug #1685: Some windows unicode path issues remain Assigned 06/24/2009

Associated revisions

Revision 25659
Added by Yui NARUSE about 2 years ago

* gem_prelude.rb (Gem.user_home): force_encoding( Encoding.find('filesystem')). [ruby-core:26525]

History

Updated by Yui NARUSE about 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
This issue was solved with changeset r25659.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

Also available in: Atom PDF