Problem with Locales (hu)!
I need to write a function to read in chars from a string and I have to find out if those chars are alphanumeric.
However this program is not English, it's in Hungarian and that's the problem.
Functions such as islower(), isupper(), isalpha..etc don't recognize special hungarian (e.g: Á,É,Ú,Ó..etc) characters as letters.
I tried to change the loacle using setlocale(LC_CTYPE,"hu") and setlocale(LC_ALL,"hu"), but it's not much help. Now some of the characters are OK, but not all of them. Letters like 'Ú' or 'Á' are still non-alphanumeric...
How can I solve this? Any suggestions would be appreciated. Please help me out guys.
P.S.: I also gave a try to the LANG enviroment variable, but I don't exactly know how to use it.. I've typed in something like:
# define LANG hu or # define LANG Hungarian
Have no luck...-:( Is the syntax correct?
Thanks in advance!