From: nobu@... Date: 2016-08-05T01:04:31+00:00 Subject: [ruby-core:76737] [Ruby trunk Feature#12654] On Windows use UTF-8 as filesystem encoding Issue #12654 has been updated by Nobuyoshi Nakada. D��vis Mos��ns wrote: > 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. I think they should be the console's codepage (or "locale" encoding), not UTF-8 always. ---------------------------------------- Feature #12654: On Windows use UTF-8 as filesystem encoding https://bugs.ruby-lang.org/issues/12654#change-59958 * Author: D��vis Mos��ns * 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: