Project

General

Profile

Actions

Backport #6104

closed

File.join always returns as ASCII-8BIT regardless of input encoding

Added by patrickb (Patrick Bennett) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
[ruby-core:43027]

Description

I can show lots of different variations, but the simplest proof is:
irb(main):001:0> File.join('foo'.encode('utf-8')).encoding
=> #Encoding:ASCII-8BIT


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #5483: Pathname doesn’t deal with encodings properlyClosed10/25/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0