Ethereal-dev: Re: [Ethereal-dev] Updates for README files

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 6 Nov 2003 01:47:17 -0800
On Wed, Nov 05, 2003 at 09:32:57PM -0800, Michael Lum wrote:
> README.developer
> 	- I didn't see any mention of using the following (I don't know what it's
> called):
> 
> 	sprintf(add_string, " - (%1$d) (0x%1$04x)", value);
> 
> 	This doesn't display properly under Windows.

The printf routines in Windows might not have added that i18n printf
feature; I think it was added in some UNIX standard so that you could
have format strings that are human-language-dependent *including* the
ability to change the order of words (e.g., whether an adjective
precedes or follows the noun it modifies).

For that reason (and because not all UNIXes necessarily implement it,
although I suspect most if not all modern ones do), code in Ethereal
shouldn't use it.  I've added Yet Another Item to the portability
section for that.