mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/syck/rubyext.c (yaml_org_handler): associate encoding.
* ext/syck/rubyext.c (syck_genericresolver_node_import): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b45b336ee
commit
818bb6dd21
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Sun Jun 15 18:40:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/syck/rubyext.c (yaml_org_handler): associate encoding.
|
||||
|
||||
* ext/syck/rubyext.c (syck_genericresolver_node_import): ditto.
|
||||
|
||||
Sun Jun 15 18:17:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_core.h (rb_vm_t), vm.c (rb_vm_mark): moved preallocated special
|
||||
|
|
|
@ -511,6 +511,7 @@ yaml_org_handler( SyckNode *n, VALUE *ref )
|
|||
else if ( strcmp( type_id, "str" ) == 0 )
|
||||
{
|
||||
obj = rb_str_new( n->data.str->ptr, n->data.str->len );
|
||||
rb_enc_associate(obj, rb_utf8_encoding());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1237,6 +1238,7 @@ syck_genericresolver_node_import(VALUE self, VALUE node)
|
|||
case syck_str_kind:
|
||||
{
|
||||
v = rb_str_new( n->data.str->ptr, n->data.str->len );
|
||||
rb_enc_associate(v, rb_utf8_encoding());
|
||||
if ( n->data.str->style == scalar_1quote )
|
||||
{
|
||||
style = sym_1quote;
|
||||
|
|
Loading…
Reference in a new issue