On Tue, Dec 09, 2014 at 08:32:23AM -0700, Ingo Schwarze wrote: > CVSROOT: /cvs > Module name: src > Changes by: schwa...@cvs.openbsd.org 2014/12/09 08:32:23 > > Modified files: > lib/libc/locale: setlocale.3 > > Log message: > LC_CTYPE has no effect on ctype(3), but on wctype(3); ok jmc@
That doesn't sound right. Try this program: #include <ctype.h> #include <locale.h> #include <stdio.h> int main() { int c = 0xC4; /* A umlaut in latin1 */ setlocale(LC_CTYPE, "C"); printf("%c is %sprintable\n", c, isprint(c) ? "" : "not "); setlocale(LC_CTYPE, "en_US.ISO8859-1"); printf("%c is %sprintable\n", c, isprint(c) ? "" : "not "); return 0; }