[macruby-changes] [5189] MacRuby/trunk/string.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 25 03:45:01 PST 2011


Revision: 5189
          http://trac.macosforge.org/projects/ruby/changeset/5189
Author:   vincent.isambart at gmail.com
Date:     2011-01-25 03:45:01 -0800 (Tue, 25 Jan 2011)
Log Message:
-----------
fixed a mistake in the previous commit: each_char does NOT raise an
exception even if the encoding is incorrect

Modified Paths:
--------------
    MacRuby/trunk/string.c

Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c	2011-01-25 11:05:34 UTC (rev 5188)
+++ MacRuby/trunk/string.c	2011-01-25 11:45:01 UTC (rev 5189)
@@ -4777,9 +4777,6 @@
     __block VALUE return_value = str;
 
     str_each_uchar32(RSTR(str), ^(UChar32 c, long start_index, long char_len, bool *stop) {
-	if (c == U_SENTINEL) {
-	    str_invalid_byte_sequence(RSTR(str));
-	}
 	VALUE charstr = (VALUE)str_new_copy_of_part(RSTR(str),
 	    start_index, char_len);
 	rb_yield(charstr);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110125/f50e5cc6/attachment.html>


More information about the macruby-changes mailing list