|
From: Bart V. A. <bar...@gm...> - 2007-10-04 10:26:34
|
On 10/4/07, Oswald Buddenhagen <os...@kd...> wrote: > > On Thu, Oct 04, 2007 at 09:31:28AM +1000, Nicholas Nethercote wrote: > > Making things more ANSI would be good, but then the ',' prefix is also > > extremely useful -- it inserts commas into printed numbers, eg. prints > > "1,234,567" instead of "1234567". Any ideas for how to get the best of > both > > worlds? > > > this one isn't particularly hard, because you just got the "elevation" > of the sign wrong - the susv2 grouping char is '. unlike in the > standard, you don't need to take the locale into account to make (newer > versions of) gcc happy ... > This is an interesting observation. I have found confirmation of the fact that the apostrophe character is a thousands group separator on the following URL (Single UNIX Specification, Version 2): http://www.opengroup.org/onlinepubs/007908775/xsh/fprintf.html Bart. |