in reply to Re^2: Win32::OLE->GetObject("winmgmts:") changes my locale
in thread Win32::OLE->GetObject("winmgmts:") changes my locale

Did you set your locale at the start of your program? perllocale says you should/have to declare the locale at program startup. Maybe that would prevent the locale getting set from elsewhere. Otherwise, you'll have to save/restore the locale around all calls to Win32::OLE :-/

  • Comment on Re^3: Win32::OLE->GetObject("winmgmts:") changes my locale

Replies are listed 'Best First'.
Re^4: Win32::OLE->GetObject("winmgmts:") changes my locale
by Boldra (Curate) on Apr 20, 2009 at 13:49 UTC
    Hi Corion,

    thanks for your suggestion, I admit I am guilty of never giving this any thought, but in this case it still doesn't help. Even if I explicitly set LC_NUMERIC at the start of my program it gets overwritten by the GetObject call.


    - Boldra