diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-08-29 14:43:52 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-08-29 14:43:52 +0300 |
commit | 94c66b3297b3ad307eee93cf6b160e3c43997f11 (patch) | |
tree | bc0f45c7d64a1788ab2e805bfa156d9f0c1197ab /src/xz/message.h | |
parent | Updated THANKS. (diff) | |
download | xz-94c66b3297b3ad307eee93cf6b160e3c43997f11.tar.xz |
Use even more hackish way to support thousand separators.
Seems that in addition on Windows and DOS, also OpenBSD
lacks support for %'d style printf() format strings.
So far that is the only modern POSIX-like system I know
with this problem, but after this hack, the thousand
separator shouldn't be a problem on any system.
Maybe testing if a format string like %'d produces
reasonable output is invoking undefined behavior on some
systems, but so far all the problematic systems I've tried
just print the raw format string (e.g. %'d prints 'd).
Maybe Autoconf test would have been better, but this
hack works also for cross-compilation, and avoids
recompilation in case the system libc starts to support
the thousand separator.
Diffstat (limited to 'src/xz/message.h')
0 files changed, 0 insertions, 0 deletions