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

* transcode.c (str_transcode0): should not raise error when

default_internal is not set.  [ruby-core:19309]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-10-14 14:05:11 +00:00
parent 45f505c40f
commit 80cdf946f7
2 changed files with 6 additions and 1 deletions

View file

@ -45,6 +45,11 @@ Tue Oct 14 12:22:32 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_variable.rb (TestVariable#test_variable): add
a test of [ruby-dev:36698].
Tue Oct 14 11:14:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* transcode.c (str_transcode0): should not raise error when
default_internal is not set. [ruby-core:19309]
Tue Oct 14 11:14:26 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* lib/net/pop.rb: check for invalid APOP timestamp. (CVE-2007-1558)

View file

@ -2455,7 +2455,7 @@ str_transcode0(int argc, VALUE *argv, VALUE *self, int ecflags, VALUE ecopts)
if (argc == 0) {
arg1 = rb_enc_default_internal();
if (NIL_P(arg1)) {
rb_raise(rb_eArgError, "Encoding.default_internal is not specified");
return -1;
}
}
else {