[macruby-changes] [3579] MacRuby/branches/icu/string.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 19 02:40:02 PST 2010


Revision: 3579
          http://trac.macosforge.org/projects/ruby/changeset/3579
Author:   vincent.isambart at gmail.com
Date:     2010-02-19 02:39:59 -0800 (Fri, 19 Feb 2010)
Log Message:
-----------
fixed a bug in str_compatible_encoding

Modified Paths:
--------------
    MacRuby/branches/icu/string.c

Modified: MacRuby/branches/icu/string.c
===================================================================
--- MacRuby/branches/icu/string.c	2010-02-19 10:15:25 UTC (rev 3578)
+++ MacRuby/branches/icu/string.c	2010-02-19 10:39:59 UTC (rev 3579)
@@ -171,7 +171,7 @@
 	    || !str2->encoding->ascii_compatible) {
 	return NULL;
     }
-    if (str_is_ruby_ascii_only(str1) && str_is_ruby_ascii_only(str2)) {
+    if (str_is_ruby_ascii_only(str2)) {
 	return str1->encoding;
     }
     return NULL;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100219/7f4b75f5/attachment.html>


More information about the macruby-changes mailing list