[macruby-changes] [2994] MacRuby/trunk/parse.y
source_changes at macosforge.org
source_changes at macosforge.org
Wed Nov 11 03:16:15 PST 2009
Revision: 2994
http://trac.macosforge.org/projects/ruby/changeset/2994
Author: lsansonetti at apple.com
Date: 2009-11-11 03:16:12 -0800 (Wed, 11 Nov 2009)
Log Message:
-----------
<rdar://problem/7381870> MacRuby doesn't understand encoding: binary
Modified Paths:
--------------
MacRuby/trunk/parse.y
Modified: MacRuby/trunk/parse.y
===================================================================
--- MacRuby/trunk/parse.y 2009-11-11 11:07:08 UTC (rev 2993)
+++ MacRuby/trunk/parse.y 2009-11-11 11:16:12 UTC (rev 2994)
@@ -6148,7 +6148,11 @@
#if WITH_OBJC
enc = rb_enc_find(name);
if (enc == NULL) {
- rb_raise(rb_eArgError, "unknown encoding name: %s", name);
+ // XXX we currently don't support this functionality, so let's not
+ // raise any exception for now.
+ // (this seems to be triggered if the encoding is 'binary').
+ //rb_raise(rb_eArgError, "unknown encoding name: %s", name);
+ enc = rb_locale_encoding();
}
/* TODO should raise if the encoding is not ASCII compatible */
#else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091111/c7b62d17/attachment.html>
More information about the macruby-changes
mailing list