Wireshark-bugs: [Wireshark-bugs] [Bug 7389] IO Graphs do not insert thousands markers in labels

Date: Thu, 21 Jun 2012 08:09:29 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7389

--- Comment #3 from Richard Sharpe <realrichardsharpe@xxxxxxxxx> 2012-06-21 08:09:28 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > (As written on -dev):
> > 
> > A quick search for "printf apostrophe portable" brought me here:
> > 
> > http://www.velocityreviews.com/forums/t442370-portability-issues-with-flag-in-printf.html
> > 
> > which indicates that using the apostrophe isn't really portable.
> 
> I was just looking at this as well and noticed the following from "man 3
> printf":
> 
>        The  five  flag  characters  above  are defined in the C standard.  The
>        SUSv2 specifies one further flag character.
> 
>        ’      For decimal conversion (i, d, u, f, F, g, G) the output is to be
>               grouped with thousands’ grouping characters if the locale infor-
>               mation indicates any.  Note that many  versions  of  gcc  cannot
>               parse  this  option  and  will  issue a warning.  SUSv2 does not
>               include %’F.
> 
> And it doesn't seem to work in my testing on Windows.

This shows a way to get thousands separators on Windows:

http://forums.codeguru.com/showthread.php?402370-Thousand-separator

However, it does involve explicitly working with locales, so we might need a
wrapper around g_snprintf here ...

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.