1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/tk/tkutil/tkutil.c: fix typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2005-07-05 06:19:11 +00:00
parent e3849ae987
commit 5a33a2c74a
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Tue Jul 5 15:15:10 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/tkutil.c: fix typo.
Tue Jul 5 14:52:56 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/tcltklib.c: bug fix on treating Unicode strings.

View file

@ -373,7 +373,7 @@ ary2list(ary, enc_flag, self)
}
val = rb_apply(cTclTkLib, ID_merge_tklist, dst);
if (TYPE(dst_enc) == T_STRING) {
val = rb_fun_call(cTclTkLib, ID_fromUTF8, 2, val, dst_enc);
val = rb_funcall(cTclTkLib, ID_fromUTF8, 2, val, dst_enc);
rb_ivar_set(val, ID_at_enc, dst_enc);
} else {
rb_ivar_set(val, ID_at_enc, rb_str_new2("utf-8"));
@ -463,7 +463,7 @@ ary2list2(ary, enc_flag, self)
}
val = rb_apply(cTclTkLib, ID_merge_tklist, dst);
if (TYPE(dst_enc) == T_STRING) {
val = rb_fun_call(cTclTkLib, ID_fromUTF8, 2, val, dst_enc);
val = rb_funcall(cTclTkLib, ID_fromUTF8, 2, val, dst_enc);
rb_ivar_set(val, ID_at_enc, dst_enc);
} else {
rb_ivar_set(val, ID_at_enc, rb_str_new2("utf-8"));