bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: outdigit again


From: Keld J첩rn Simonsen
Subject: Re: outdigit again
Date: Sun, 16 Jun 2002 22:29:05 +0200
User-agent: Mutt/1.3.27i

On Sun, Jun 16, 2002 at 07:56:12PM +0430, Roozbeh Pournader wrote:
> 
> I was wondering about the 'outdigit' feature in glibc locales. Currently,
> one can use "%Id" with printf, to print a decimal number in a localized
> way (see 'man 3 printf'), which works nicely.
> 
> But how is this going to work with an application like 'ls'? If I want
> 'ls' to display localized numbers in the 'fa_IR' locale, should I patch
> it, replacing the "%d"s with "%Id"s in the appropriate places?
> 
> If I look from the other way, there will be many cases when the
> application doesn't use "%Id". In these cases, when the application
> outputs a tounsands separated number using "%'d", or a floating point one,
> glibc will use the Persian separators, which don't look good between
> Latin digits.
> 
> In short, I need to specify two different thousands separators and two
> different decimal separators in my locale definition: one for Latin
> digits, and one for localized digits. The functionality is not there, so I 
> need to design and add it myself. Any ideas or recommendations?

I have no good ideas right now except adding some new keywords in
LC_NUMERIC.

Keld



reply via email to

[Prev in Thread] Current Thread [Next in Thread]