Project

General

Profile

Actions

Bug #5483

closed

Pathname doesn’t deal with encodings properly

Bug #5483: Pathname doesn’t deal with encodings properly

Added by now (Nikolai Weibull) almost 15 years ago. Updated almost 15 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-09-13 revision 33263) [i386-mingw32]
Backport:
[ruby-core:40338]

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.


Related issues 1 (0 open — 1 closed)

Related to Backport193 - Backport #6104: File.join always returns as ASCII-8BIT regardless of input encodingClosedusa (Usaku NAKAMURA)Actions

Updated by nobu (Nobuyoshi Nakada) almost 15 years ago Actions #1

  • 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.


Actions

Also available in: PDF Atom