mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* transcode.c (rb_econv_open): reverse the order of decorders.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4fcb83c06c
commit
b96c3dfe67
2 changed files with 5 additions and 1 deletions
|
@ -990,7 +990,7 @@ rb_econv_open(const char *sname, const char *dname, int ecflags)
|
|||
if (!ec)
|
||||
return NULL;
|
||||
|
||||
for (i = num_decoders-1; 0 <= i; i--)
|
||||
for (i = 0; i < num_decoders; i++)
|
||||
if (rb_econv_decorate_at_last(ec, decoders[i]) == -1) {
|
||||
rb_econv_close(ec);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue