Actions
Bug #5483
closedPathname doesn’t deal with encodings properly
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-09-13 revision 33263) [i386-mingw32]
Backport:
Description
Encoding.find('filesystem') # => Windows-1252
(Pathname('//Server/Share'.encode('filesystem'))+'Entry'.encode('filesystem')).to_path.encoding # => ASCII-8BIT
This actually seems to be a problem with File.join, as File.join doesn’t retain any sort of encoding of the input arguments.
Updated by nobu (Nobuyoshi Nakada) about 13 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r33525.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- file.c (rb_file_join): honor input encodings than ASCII-8BIT.
[ruby-core:40338] [Bug #5483]
Actions
Like0
Like0