* 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:
parent
45f505c40f
commit
80cdf946f7
@ -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
|
* test/ruby/test_variable.rb (TestVariable#test_variable): add
|
||||||
a test of [ruby-dev:36698].
|
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>
|
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)
|
* lib/net/pop.rb: check for invalid APOP timestamp. (CVE-2007-1558)
|
||||||
|
@ -2455,7 +2455,7 @@ str_transcode0(int argc, VALUE *argv, VALUE *self, int ecflags, VALUE ecopts)
|
|||||||
if (argc == 0) {
|
if (argc == 0) {
|
||||||
arg1 = rb_enc_default_internal();
|
arg1 = rb_enc_default_internal();
|
||||||
if (NIL_P(arg1)) {
|
if (NIL_P(arg1)) {
|
||||||
rb_raise(rb_eArgError, "Encoding.default_internal is not specified");
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user