Revision: 3653 http://trac.macosforge.org/projects/ruby/changeset/3653 Author: lsansonetti@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(); } /*
participants (1)
-
source_changes@macosforge.org