On Tue, Apr 07, 2009 at 06:54:59PM +0000, Thorsten Glaser wrote: > Bill Allombert dixit: > > >Fortunately, since Sarge, debian-installer set LANG in > >/etc/environment so programs almost never run under C locale anymore. > > Except the ton which sets LC_ALL=C to get sane (parsable, > dependable, historically compatible) output.
The gettext bug itself won't cause any change in typical behaviour with gettext(). As an optimisation, it's OK to skip translating if running in a C locale. However, if we use dgettext/dcgettext etc., we are explicitly asking for a given text domain and want translation even in a C locale. As Bill said, the change is trivial (I've also looked at libintl and libc to look at fixing it). One use case I need this for is the generation of PPD files in gutenprint; we generate single files containing multiple languages and so use dgettext, but this totally breaks in the C locale due to the C locale special casing in gettext. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
signature.asc
Description: Digital signature