3 ms·
most 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>
by jcelerier 5y ago
most 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)