[macruby-changes] [3653] MacRuby/branches/icu/io.c
source_changes at macosforge.org
source_changes at macosforge.org
Sat Feb 27 02:34:16 PST 2010
Revision: 3653
http://trac.macosforge.org/projects/ruby/changeset/3653
Author: lsansonetti at apple.com
Date: 2010-02-27 02:34:16 -0800 (Sat, 27 Feb 2010)
Log Message:
-----------
in the meantime we support encodings in IO, let's return something meaningful in #external_encoding and #internal_encoding
Modified Paths:
--------------
MacRuby/branches/icu/io.c
Modified: MacRuby/branches/icu/io.c
===================================================================
--- MacRuby/branches/icu/io.c 2010-02-27 10:33:32 UTC (rev 3652)
+++ MacRuby/branches/icu/io.c 2010-02-27 10:34:16 UTC (rev 3653)
@@ -3965,7 +3965,7 @@
rb_io_external_encoding(VALUE io, SEL sel)
{
// TODO
- return Qnil;
+ return (VALUE)rb_locale_encoding();
}
/*
@@ -3980,7 +3980,7 @@
rb_io_internal_encoding(VALUE io, SEL sel)
{
// TODO
- return Qnil;
+ return (VALUE)rb_locale_encoding();
}
/*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100227/16924c5a/attachment.html>
More information about the macruby-changes
mailing list