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

* ext/nkf/nkf.c (rb_nkf_convert): output of mime encode is US-ASCII.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-07-24 19:14:47 +00:00
parent 59f23bd421
commit b7464f8513
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Jul 25 04:12:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf.c (rb_nkf_convert): output of mime encode is US-ASCII.
Fri Jul 25 02:43:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
* sample/coverage.rb: move from lib/coverage.rb because this remains in

View file

@ -169,7 +169,10 @@ rb_nkf_convert(VALUE obj, VALUE opt, VALUE src)
rb_str_set_len(result, output_ctr);
OBJ_INFECT(result, src);
rb_enc_associate(result, rb_nkf_enc_get(nkf_enc_name(output_encoding)));
if (mimeout_f)
rb_enc_associate(result, rb_usascii_encoding());
else
rb_enc_associate(result, rb_nkf_enc_get(nkf_enc_name(output_encoding)));
return result;
}