Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: confusing result from Win32::GetACP()

by Corion (Patriarch)
on Aug 20, 2025 at 14:03 UTC ( [id://11166065]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11166065]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2025-11-13 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (68 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.