From 99d0c2888a3466a98318d05ecb686807d4ca8177 Mon Sep 17 00:00:00 2001 From: Mathew Velasquez Date: Thu, 8 Dec 2016 20:20:12 -0500 Subject: [PATCH] Marshal tweaks --- binding-mri/filesystem-binding.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/binding-mri/filesystem-binding.cpp b/binding-mri/filesystem-binding.cpp index f45d564..7076326 100644 --- a/binding-mri/filesystem-binding.cpp +++ b/binding-mri/filesystem-binding.cpp @@ -129,7 +129,7 @@ kernelLoadDataInt(const char *filename, bool rubyExc) VALUE port = fileIntForPath(filename, rubyExc); - VALUE marsh = rb_const_get(rb_cObject, rb_intern("PureRubyMarshal")); + VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal")); // FIXME need to catch exceptions here with begin rescue VALUE result = rb_funcall2(marsh, rb_intern("load"), 1, &port); @@ -223,7 +223,7 @@ fileIntBindingInit() /* We overload the built-in 'Marshal::load()' function to silently * insert our utf8proc that ensures all read strings will be * UTF-8 encoded */ - VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal")); - rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load"); - _rb_define_module_function(marsh, "load", _marshalLoad); + // VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal")); + // rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load"); + // _rb_define_module_function(marsh, "load", _marshalLoad); }