[Win32utils-devel] Temporarily setting the output language for cmd.exe

Heesob Park phasis at gmail.com
Thu Jan 17 23:02:31 EST 2008


2008/1/18, Daniel Berger <djberg96 at gmail.com>:
> Hi all,
> One of the net-ping users reported that the Net::Ping::External library
> was returning false positives on Vista. Basically, it does a 'ping -n1
> host' and checks for certain error strings.
> The problem is that the error strings it checks for are in English. The
> user in question is using a cmd.exe that's entirely in Swedish (I think).
> Is there any way I can temporarily set the language of the command
> console so that it emits English only? I tried setlocale() but that
> didn't work. Perhaps a registry setting somewhere? Or an explicit 'cmd
> /c' call with some other special option?
> Thanks,
> Dan

In the cmd.exe console window, Run "chcp 437".


Park Heesob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/win32utils-devel/attachments/20080118/c7f96a1c/attachment.html 

More information about the win32utils-devel mailing list