3 ms·
Those both return 0 for isalpha() on glibc for me, with or without export LC_CTYPE=iso_8859_1 Is there some other setup I'd need to do to see it work in glibc?
by tyingq 5y ago
Those both return 0 for isalpha() on glibc for me, with or without export LC_CTYPE=iso_8859_1
Is there some other setup I'd need to do to see it work in glibc?
- jcelerier 5y agomost likely you need to build the locale on your system (uncomment the relevant line in /etc/locale.gen and run sudo locale-gen). here #include <ctype.h> #include <locale.h> #include <stdio.h> int main(int argc, char** argv) { setlocale(LC_CTYPE, "fr_FR.iso88591"); if(isalpha('ç')) printf("ok\n"); } prints ok (with the file in the correct encoding)