Issue #12654 has been updated by Dvis Mosns.


Nobuyoshi Nakada wrote:
> Try `chcp.com 65001`.

That's not really needed. For example File.read works with any console's codepage. But Dir.entries and Dir.pwd works only for ANSI paths no matter what console's codepage is set to. There's quite inconsistency between what encodings are used and IMO best solution is just use UTF-8 everywhere.

Anyway this patch is for Ruby 3


----------------------------------------
Feature #12654: On Windows use UTF-8 as filesystem encoding
https://bugs.ruby-lang.org/issues/12654#change-59956

* Author: Dvis Mosns
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
Windows (NTFS) supports Unicode and there can be paths/filenames with other characters than current ANSI/OEM codepage can encode.

See attached patch.


---Files--------------------------------
0001-On-Windows-use-UTF-8-as-filesystem-encoding.patch (10.4 KB)


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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>