[ruby-core:64111] [ruby-trunk - Bug #9712] [Assigned] Dir.entries replace Unicode character with questionmarks

From: e@...
Date: 2014-07-29 04:18:14 UTC
List: ruby-core #64111
Issue #9712 has been updated by Zachary Scott.

Status changed from Closed to Assigned
Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED to 2.0.0: REQUIRED, 2.=
1: DONTNEED

In that case, we need to ask for a backport of r42058; this must be done by=
 usa the maintainer of 2.0 series.

Thank you for the report.

----------------------------------------
Bug #9712: Dir.entries replace Unicode character with questionmarks
https://bugs.ruby-lang.org/issues/9712#change-48122

* Author: Thomas Thomassen
* Status: Assigned
* Priority: Normal
* Assignee: Zachary Scott
* Category: doc
* Target version: current: 2.2.0
* ruby -v: ruby 2.2.0dev (2014-04-07 trunk 45528) [i386-mswin32_100]
* Backport: 2.0.0: REQUIRED, 2.1: DONTNEED
----------------------------------------
My basis when testing this is that I have a computer with English OS - code=
page Windows-1252. The tests might yield different result if the Windows co=
depage is different - so please pay attention to that if you are unable to =
reproduce.

Given a folder named "Foo" which contains a sub-folder "=E3=81=A6=E3=81=99=
=E3=81=A8" ("\u3066\u3059\u3068") Dir.entries("Foo") will return:
[".", "..", "???"]

The characters that doesn't fit my filesystem codepage is translated into q=
uestion marks.

I would have expected the strings returned to be in some Unicode format.



--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next