From: Nikolai Weibull Date: 2012-03-12T16:39:59+09:00 Subject: [ruby-core:43242] Re: [ruby-trunk - Bug #5570][Feedback] Encoding of environment variables on Windows On Sun, Mar 11, 2012 at 22:44, Nobuyoshi Nakada wrote: > > Issue #5570 has been updated by Nobuyoshi Nakada. > > Status changed from Assigned to Feedback > Target version set to 2.0.0 > > Which codepage should be used there, ACP or OEMCP? I���m not sure that I understand what the question is referring to, but the encoding of the value of environment variables should be the filesystem encoding on Windows, just as it is on Unix. The only difference is that _wgetenv should be used instead of getenv so that the transcoding can be done reliably.