Actions
Bug #16623
closedWindows ENV encoding
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.8.0dev (2020-02-10T12:41:15Z master 2dea81f477) [x64-mswin64_140]
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
.
Updated by jeremyevans0 (Jeremy Evans) over 3 years ago
- Related to Bug #16970: Encoding of ENV value returns ASCII-8BIT in Ruby2.6 or later added
Updated by jeremyevans0 (Jeremy Evans) about 3 years ago
- Status changed from Open to Closed
Actions
Like0
Like0Like0