Project

General

Profile

Actions

Bug #16623

closed

Windows ENV encoding

Added by MSP-Greg (Greg L) about 4 years ago. Updated about 3 years ago.

Status:
Closed
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.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #16970: Encoding of ENV value returns ASCII-8BIT in Ruby2.6 or laterClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0