blob: 2ecc9c02277d035cdccde60de8f9b761db78f8fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#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);
}
|