Subject: | can't load files with magic 'coding: binary' comment |
From: | hermit [...] acm.org |
Files with the magic comment "# coding: binary" (as well as other
encodings) can't be loaded by "require".
This seems to be because Init_enc() in ruby is never called. It would
be called if Ruby.xs called ruby_options(), as is done in Ruby's
main.c.
At least one file included with Ruby (openssl/buffering.rb) uses this
encoding, and because of this,
use Inline 'Ruby' => 'require "rails"';
fails with
#<ArgumentError: unknown encoding name: binary>