From: thomas@... Date: 2017-01-04T14:15:37+00:00 Subject: [ruby-core:78968] [Ruby trunk Feature#12650] Use UTF-8 encoding for ENV on Windows Issue #12650 has been updated by Thomas Thomassen. B Kelly wrote: > Hi, > > Usaku NAKAMURA wrote: > > We don't want to break compatibility. > > Wait Ruby3. > > We always invoke ruby with -EUTF-8:UTF-8 . > > Would make sense to enable this patch in ruby 2.x in such situations > where UTF-8 behavior has been requested explicitly? I would like to second this request. We are also troubled by the encoding issues under Windows. Not sure when Ruby 3 is planned to be released, but we would prefer for a more immediate solution. ---------------------------------------- Feature #12650: Use UTF-8 encoding for ENV on Windows https://bugs.ruby-lang.org/issues/12650#change-62388 * Author: D��vis Mos��ns * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Windows environment variables supports Unicode (same wide WinAPI) and so there's no reason to limit ourselves to any codepage. Currently ENV would use locale's encoding (console's codepage) which obviously won't work correctly for characters outside of those codepages. I've attached a patch which implements this and fixes bug #9715 ---Files-------------------------------- 0001-Always-use-UTF-8-encoded-environment-on-Windows.patch (3.64 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: