Project

General

Profile

Bug #16623

Windows ENV encoding

Added by MSP-Greg (Greg L) 5 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.8.0dev (2020-02-10T12:41:15Z master 2dea81f477) [x64-mswin64_140]
[ruby-core:97116]

Description

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.

No data to display

Also available in: Atom PDF