Project

General

Profile

Actions

Feature #12650

closed

Use UTF-8 encoding for ENV on Windows

Added by davispuh (Dāvis Mosāns) over 5 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
cruby-windows
Target version:
[ruby-core:76668]

Description

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


Related issues

Related to Ruby master - Bug #9715: ENV data yield ASCII-8BIT encoded strings under Windows with unicode usernameClosedcruby-windowsActions
Related to Ruby master - Feature #16604: Set default for Encoding.default_external to UTF-8 on WindowsClosedActions
Actions

Also available in: Atom PDF