Wireshark-bugs: [Wireshark-bugs] [Bug 7389] IO Graphs do not insert thousands markers in labels
Date: Thu, 21 Jun 2012 07:11:01 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7389

--- Comment #2 from Chris Maynard <[email protected]> 2012-06-21 07:11:01 PDT ---
(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.

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