Permalink
Browse files

added Encoding#default_external= and Encoding#default_internal= which…

… do nothing (for now)

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@2989 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent b554ea4 commit 1623532353dddbff044bf1c95f9ac79dbbed4c0a @lrz lrz committed Nov 10, 2009
Showing with 9 additions and 0 deletions.
  1. +9 −0 encoding.c
View
@@ -375,6 +375,13 @@ get_default_external(VALUE klass, SEL sel)
return rb_enc_default_external();
}
+static VALUE
+set_default_external(VALUE klass, SEL sel, VALUE enc)
+{
+ // TODO
+ return enc;
+}
+
void
rb_enc_set_default_external(VALUE encoding)
{
@@ -553,7 +560,9 @@ Init_Encoding(void)
rb_objc_define_method(*(VALUE *)rb_cEncoding, "_load", enc_load, 1);
rb_objc_define_method(*(VALUE *)rb_cEncoding, "default_external", get_default_external, 0);
+ rb_objc_define_method(*(VALUE *)rb_cEncoding, "default_external=", set_default_external, 1);
rb_objc_define_method(*(VALUE *)rb_cEncoding, "default_internal", get_default_external, 0); // TODO
+ rb_objc_define_method(*(VALUE *)rb_cEncoding, "default_internal=", set_default_external, 1); // TODO
rb_objc_define_method(*(VALUE *)rb_cEncoding, "locale_charmap", rb_locale_charmap, 0);
enc_init_db();

0 comments on commit 1623532

Please sign in to comment.