Follow-up Comment #3, bug #34486 (project gnustep):
Pretty much the two workarounds right now are putting the utf-16 codepoints in
an array and then using -initWithCharacters:length:, or else loading the
string from a file (maybe using NSLocalizedString?)
unichar string[2] = { 0x0068, 0x00e }; // utf-16 codepoints for "hé"
NSLog(@"%@", [[[NSString alloc] initWithCharacters: string length: 2]
autorelease]);
That's a pain, though.
The u escape sequence is probably treated the same by the compiler as loading
a utf-8 source file, so it makes sense that it doesn't work at the moment.
btw, here is a mailing list post that may have some useful info:
http://lists.apple.com/archives/cocoa-dev/2008/Nov/msg02226.html
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34486>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep