bug-fileutils
[Top][All Lists]
Advanced

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

Re: fileutils - contribution - digit delineation in number output (735,


From: Thomas Morin
Subject: Re: fileutils - contribution - digit delineation in number output (735,666,912)
Date: Wed, 3 Jul 2002 09:14:21 +0200
User-agent: Internet Messaging Program (IMP) 3.1

Richard Dawe <address@hidden>:
 | 
 | I suspect the delimiter would be determined by the locale. Some countries
 | use a dot, some a comma and some an apostrophe, I believe.

It looks like strfmon(7) was made just for this ; according to locale(7) :

      LC_MONETARY
              changes  the  information  returned by localeconv()
              which  describes  the  way  numbers   are   usually
              printed,  with details such as decimal point versus
              decimal comma.  This information is internally used
              by the function strfmon().

I'm guessing that with (LC_ALL set to the proper value) strfmon will format 
numbers nicely.

Regards,

-Thomas

-- 
== Thomas Morin   --  GSM: 06 83 20 64 87   --   Tel: 02 98 05 98 54
== address@hidden    --    address@hidden
== PGP Id:8CEA233D   Key FP:503BF6CFD3AE8719377B832A02FB94E08CEA233D
--




reply via email to

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