Re: Unicode String literals on various platforms

2000-08-08 Thread Antoine Leca
Bob Jones wrote: > > In a C program, how do you code Unicode string literals on the following > platforms: > NT > Unix (Sun, AIX, HP-UX) > AS/400 We devised a solution for this problem in the C99 Standard. The "solution" is named "UCN", for Universal Character Notation, and is essentially to us

Re: Unicode String literals on various platforms

2000-08-03 Thread Jeu George
>In a C program, how do you code Unicode string literals on the following >platforms: >NT >Unix (Sun, AIX, HP-UX) >AS/400 > could you explain this more specificallly. maybe give an example where you need this >Everything I have read says not to use wchar_t for cross platform apps >because the s

Re: Unicode String literals on various platforms

2000-08-03 Thread Kenneth Whistler
Bob Jones asked: > In a C program, how do you code Unicode string literals on the following > platforms: > NT > Unix (Sun, AIX, HP-UX) > AS/400 > A somewhat cumbersome, but completely reliable crossplatform way to code occasional Unicode string literals in a C program is: static unichar thai2[

Unicode String literals on various platforms

2000-08-03 Thread Jones, Bob
In a C program, how do you code Unicode string literals on the following platforms: NT Unix (Sun, AIX, HP-UX) AS/400 Everything I have read says not to use wchar_t for cross platform apps because the size is not uniform, i.e. NT it is an unsigned short (2 bytes) while on Unix it is an unsigned in