bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #34486] gnustep has a problem with non-ascii string constants


From: Eric Wasylishen
Subject: [bug #34486] gnustep has a problem with non-ascii string constants
Date: Wed, 05 Oct 2011 20:36:28 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]