LWN.net Logo

Debian switching to EGLIBC

Debian switching to EGLIBC

Posted May 8, 2009 1:56 UTC (Fri) by spitzak (guest, #4593)
In reply to: Debian switching to EGLIBC by nix
Parent article: Debian switching to EGLIBC

I would be extremely happy if I could rely on printf not changing the periods to commas when I don't expect it, and strcmp not changing. I have to force the C locale at startup just so our software can write files that I can be sure can be read.

Any intelligent person would have just made a different %-command. It really is not very hard for a programmer to choose what to do based on the locale. The C library, if it provides anything at all, should only provide a "this is the locale" call. It should have ZERO effect on the behavior of any functions that do not actually take a locale as an argument.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds