[MacRuby-devel] [MacRuby] #116: "%s" inside of format statements in macruby doesn't work with multibyte characters
MacRuby
ruby-noreply at macosforge.org
Sat Aug 30 01:28:08 PDT 2008
#116: "%s" inside of format statements in macruby doesn't work with multibyte
characters
-------------------------------------+--------------------------------------
Reporter: jordan.breeding at mac.com | Owner: lsansonetti at apple.com
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 1.0
Component: MacRuby | Resolution:
Keywords: |
-------------------------------------+--------------------------------------
Changes (by lsansonetti at apple.com):
* milestone: => MacRuby 1.0
Comment:
Actually, it looks like it's not related to MacRuby.
{{{
$ cat t.m
#import <Foundation/Foundation.h>
int main(void)
{
NSLog(@"test1: %s\n", [@"あいうえお" UTF8String]);
NSLog(@"test2: %@\n", @"あいうえお");
return 0;
}
$ gcc t.m -o t -framework Foundation
$ ./t
2008-08-30 01:26:59.491 t[25923:10b] *** _NSAutoreleaseNoPool(): Object
0x1050a0 of class NSCFData autoreleased with no pool in place - just
leaking
Stack: (0x961d1cdf 0x960de562 0x960f2c35 0x960f2811)
2008-08-30 01:26:59.493 t[25923:10b] test1: „ÅÇ„ÅÑ„ÅÜ„Åà„Åä
2008-08-30 01:26:59.494 t[25923:10b] test2: あいうえお
$
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/116#comment:1>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list