Patch for multi-byte characters
Hi, I made a testbed patch to deal with multi-byte characters. I'm not sure if using NSUTF16LittleEndianStringEncoding for UniChar is appropriate on PPC. What do you think? -- Satoshi Nakagawa
Forgot to add a test file. -- Satoshi Nakagawa On 2008/03/13, at 3:42, Satoshi Nakagawa wrote:
Hi,
I made a testbed patch to deal with multi-byte characters.
I'm not sure if using NSUTF16LittleEndianStringEncoding for UniChar is appropriate on PPC. What do you think?
-- Satoshi Nakagawa
<multibyte_string_fix.patch> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Thanks a lot Satoshi-san! I merged your patch, with Benjamin's correction, and also a slightly difference (we use the old code path is the string is ASCII and we raise an exception otherwise if the string is not UTF8). http://trac.macosforge.org/projects/ruby/changeset/77 http://trac.macosforge.org/projects/ruby/changeset/78 Laurent On Mar 12, 2008, at 12:00 PM, Satoshi Nakagawa wrote:
Forgot to add a test file.
-- Satoshi Nakagawa
<multi_byte_test.patch>
On 2008/03/13, at 3:42, Satoshi Nakagawa wrote:
Hi,
I made a testbed patch to deal with multi-byte characters.
I'm not sure if using NSUTF16LittleEndianStringEncoding for UniChar is appropriate on PPC. What do you think?
-- Satoshi Nakagawa
<multibyte_string_fix.patch> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (2)
-
Laurent Sansonetti
-
Satoshi Nakagawa