mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Tweaks to support UTF-8 literal string encoding supported by more recent
compilers. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33972 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bd460841b4
commit
ee4d1aef0f
7 changed files with 408 additions and 231 deletions
|
@ -162,7 +162,7 @@ __attribute__((unused)) static void GSFreeTempBuffer(void **b)
|
|||
* more important.
|
||||
*/
|
||||
#define GS_REPLACE_CONSTANT_STRING(ID) [(ID = [NSObject \
|
||||
leak: [[NSString alloc] initWithCString: [ID cString]]]) release]
|
||||
leak: [[NSString alloc] initWithUTF8String: [ID UTF8String]]]) release]
|
||||
/* Using cString here is OK here
|
||||
because NXConstantString returns a pointer
|
||||
to it's internal pointer. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue