From: Ævar Arnfjörð Bjarmason Date: Mon, 30 Aug 2010 14:04:10 GMT Subject: Re: Odd encoding issue with UTF-8 + gettext yields ? on non-ASCII Message-ID: In-Reply-To: <20100830134136.GA2315@burratino> On Mon, Aug 30, 2010 at 13:41, Jonathan Nieder wrote: > Ævar Arnfjörð Bjarmason wrote: > >> We can even keep the "Content-Type: text/plain; charset=UTF-8\n" and >> *not* use LC_CTYPE if we add a bind_textdomain_codeset("git", "UTF-8") >> call to gettext. > > Oh!  I'd personally prefer to do that for now. :)  (Not because of the > known printf problem but because I like to reduce possible unknowns.) By now I want to do that too. I've been experimenting with including *printf*.c from OpenBSD, NetBSD or FreeBSD and the uClibc and in all those cases it's a major PITA to wade through the OS-specific code that deep in the libc. Even if I could get that sorted it'll be non-trivial to audit all the code whose semantics will change with LC_CTYPE, and there's a good chance I'll miss something and cause an embarrasing bug in some unrelated component. Better to just document this limitation for now and decree that gettext users must have a UTF-8 locale.