Ethereal-dev: Re: [ethereal-dev] Hex dump problem?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 27 Apr 2000 13:56:42 -0700 (PDT)
> 	   At program startup, the equivalent of
> 
> 		setlocal(LC_ALL, "C");

("setlocale()", not "setlocal()")

> 	is executed.

...which, by the way, means that setting LANG in UNIX-flavored OSes will
not change whether Ethereal thinks 0xAA is printable or not; we'd have
to do

	setlocale(LC_ALL, "");

to get that.

Note that doing so might change whether, for example, floating-point
numbers are converted to or from strings with "," rather than "." as the
decimal separator, in some locales, and might have other unexpected
effects, so, whilst it might over all be the Right Thing To Do (although
if we're going to go that far we should probably consider fully
internationalizing and localizing Ethereal...), we'd have to make sure
that we compensate for any effects it has on the behavior of various
library routines.