mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00

check if frozen. * parse.y (rb_intern3), ruby.c (process_options, ruby_script): defer freezing after associating encodings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
13 lines
248 B
C
13 lines
248 B
C
#include "ruby.h"
|
|
|
|
VALUE
|
|
bug_str_enc_associate(VALUE str, VALUE enc)
|
|
{
|
|
return rb_enc_associate(str, rb_to_encoding(enc));
|
|
}
|
|
|
|
void
|
|
Init_enc_associate(VALUE klass)
|
|
{
|
|
rb_define_method(klass, "associate_encoding!", bug_str_enc_associate, 1);
|
|
}
|