On 12/06/2013 16:05, Thomas Klausner wrote:
Do I understand correctly that you're saying that what the user defines in the environment changes how wchar_t is defined?
No, wchar_t by definition holds numeric values of the character code points wider than 8 bits, for various character sets. Particular character set represented by wchar_t may vary depending on the choice of the user.
Your compile time limit of the character set to UCS is too narrow.Character set should be allowed to vary at the runtime. And any character set limitations should be done at the runtime too.
Yuri