[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23173] [Bug #1370] in `glob': invalid byte sequence in UTF-8

From: Heesob Park <redmine@...>
Date: 2009-04-09 02:44:25 UTC
List: ruby-core #23173
Bug #1370: in `glob': invalid byte sequence in UTF-8
http://redmine.ruby-lang.org/issues/show/1370

Author: Heesob Park
Status: Open, Priority: Normal
Target version: 1.9.1
ruby -v: ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]

Code page is CP949 and file name is "\xC7\xD1.exe"

Here is sample code:
# encoding: UTF-8
a = Dir.glob('*')   # success
p a
a = Dir.glob('*.exe') # fail
p a

The output is:
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
["\xC7\xD1.exe"]
/work/gl.rb:4:in `glob': invalid byte sequence in UTF-8 (ArgumentError)
        from /work/gl.rb:4:in `<main>'


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next