I have a suite of programs that run on Windows and linux (redhat, fedora). My current task is to get them running on a mac running OS X.
Internally the programs use wide characters/UTF-8. We need to be backwards compatible with a version of software that stored things in extended ascii (which I gather is also called high ascii).
On fedora when I call mbtowc with a value between 128 and 255, I get the appropriate wide character. On the mac it fails. I *think* I found in sources that in Darwin, mbtowc considers only 0 to 127 to be valid ascii characters. Does anyone know for sure that this is true?
Is there a different conversion I can use, or am I going to have to write my own mbtowc?
Thanks
Susan
Internally the programs use wide characters/UTF-8. We need to be backwards compatible with a version of software that stored things in extended ascii (which I gather is also called high ascii).
On fedora when I call mbtowc with a value between 128 and 255, I get the appropriate wide character. On the mac it fails. I *think* I found in sources that in Darwin, mbtowc considers only 0 to 127 to be valid ascii characters. Does anyone know for sure that this is true?
Is there a different conversion I can use, or am I going to have to write my own mbtowc?
Thanks
Susan