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

Berger, Daniel Daniel.Berger at qwest.com
Fri Jan 18 10:34:41 EST 2008

 > -----Original Message-----
> From: win32utils-devel-bounces at rubyforge.org 
> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of 
> Heesob Park
> Sent: Thursday, January 17, 2008 9:03 PM
> To: Development and ideas for win32utils projects
> Subject: Re: [Win32utils-devel] Temporarily setting the 
> output language forcmd.exe
> Hi,
> 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".

Hm, I've tried playing around with it, but it doesn't seem to change the
language output of ping. However, that could very well have to do with
the way this machine is configured.

Heesob, does it work for you? I mean, do you have your console set to
use Korean, but ping emits English for you if you do chcp 437 && ping
-n1 www.ruby-lang.org?



This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

More information about the win32utils-devel mailing list