Project

General

Profile

Actions

Bug #1370

closed

in `glob': invalid byte sequence in UTF-8

Added by phasis68 (Heesob Park) about 12 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
Backport:
[ruby-core:23173]

Description

=begin
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
'
=end

Actions #1

Updated by yugui (Yuki Sonoda) almost 12 years ago

  • Assignee set to naruse (Yui NARUSE)

=begin

=end

Actions #2

Updated by naruse (Yui NARUSE) almost 12 years ago

  • Status changed from Open to Closed

=begin
This problem is fixed in Ruby 1.9.2.
=end

Actions

Also available in: Atom PDF