From: Greg.mpls@... Date: 2020-02-10T23:39:54+00:00 Subject: [ruby-core:97116] [Ruby master Bug#16623] Windows ENV encoding Issue #16623 has been reported by MSP-Greg (Greg L). ---------------------------------------- Bug #16623: Windows ENV encoding https://bugs.ruby-lang.org/issues/16623 * Author: MSP-Greg (Greg L) * Status: Open * Priority: Normal * ruby -v: ruby 2.8.0dev (2020-02-10T12:41:15Z master 2dea81f477) [x64-mswin64_140] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- Actions has some issues with Windows CI, most related to the console encoding. I thought I'd start with the spec tests and see what was failing. On a standard Windows 10 desktop, console encoding is IBM437. ENV.keys and ENV.values are all encoded IBM437. When the console is switched to UTF-8, ENV.keys and ENV.values are all encoded ASCII-8BIT. I verified this using both cmd and PowerShell consoles, using both mingw and mswin builds. On cmd console, `chcp` changes Ruby's external & locale encodings, the PowerShell command that mimics it is `[Console]::InputEncoding`. -- https://bugs.ruby-lang.org/ Unsubscribe: