Project

General

Profile

Actions

Feature #12650

closed

Use UTF-8 encoding for ENV on Windows

Added by davispuh (Dāvis Mosāns) over 7 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
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 2 (0 open2 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0