On Tue, Apr 07, 2009 at 10:47:00PM +0000, Thorsten Glaser wrote: > Roger Leigh dixit: > > >Are you sure? > > Not entirely, but I recall fgetc (or was it fgetwc?) > being affected.
Ah, fgetc/fputc are specified in the standard as "byte oriented" rather than character-oriented, so are probably locale-independent for binary I/O. OTOH, the wide variants are for wide character I/O and may require conversion between the narrow and wide forms which might well need to involve the locale. I thought I spotted this reading the standard last night, but I can't find the text this morning. 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. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org