On 02/08/11 12:52, Ben Pfaff wrote: > Thanks. I was assuming a plain format such as %d. > > Does your answer come from experience with many implementations, > or is it based on knowledge of some document or standard?
Both. The relevant standard <http://pubs.opengroup.org/onlinepubs/9699919799/functions/fprintf.html> says that plain %d is unaffected by locale. Locale does affect radix characters and thousands grouping characters, but it doesn't affect the minus sign or digits.
