in reply to confusing result from Win32::GetACP()

On two random Windows 11 machines in cmd.exe, with Perl 5.26 or Perl 5.40.0, I get:

> perl -MWin32 -E "say Win32::GetACP()" 1252 > chcp Aktive Codepage: 850

I guess this is what you expect?

Maybe this has something to do with the environment you're launching cmd.exe in? In my case this was Windows Terminal, but I'm unsure whether that matters.

Replies are listed 'Best First'.
Re^2: confusing result from Win32::GetACP()
by ikegami (Patriarch) on Aug 20, 2025 at 14:18 UTC