[macruby-changes] [3591] MacRuby/branches/icu/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 23 03:57:50 PST 2010
Revision: 3591
http://trac.macosforge.org/projects/ruby/changeset/3591
Author: vincent.isambart at gmail.com
Date: 2010-02-23 03:57:49 -0800 (Tue, 23 Feb 2010)
Log Message:
-----------
fixed a bug in inspect when using characters not in the BMP
Modified Paths:
--------------
MacRuby/branches/icu/string.c
Modified: MacRuby/branches/icu/string.c
===================================================================
--- MacRuby/branches/icu/string.c 2010-02-23 11:47:44 UTC (rev 3590)
+++ MacRuby/branches/icu/string.c 2010-02-23 11:57:49 UTC (rev 3591)
@@ -1722,7 +1722,7 @@
{
const bool uchars = str_is_stored_in_uchars(RSTR(str));
const long len = uchars
- ? str_length(RSTR(str), false) : RSTR(str)->length_in_bytes;
+ ? str_length(RSTR(str), true) : RSTR(str)->length_in_bytes;
if (len == 0) {
return rb_str_new2("\"\"");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100223/ace49d75/attachment.html>
More information about the macruby-changes
mailing list