[ruby-core:76737] [Ruby trunk Feature#12654] On Windows use UTF-8 as filesystem encoding
From:
nobu@...
Date:
2016-08-05 01:04:31 UTC
List:
ruby-core #76737
Issue #12654 has been updated by Nobuyoshi Nakada. Dト」is Mosト]s 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ト」is Mosト]s * 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>