diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-09 11:22:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-09 11:22:17 +0000 |
commit | 55ac27204267ae9f5e90443ef8e7be761bac0915 (patch) | |
tree | 8e960f07524080763e48d536a90f4bbc4dfd2ce2 | |
parent | a8d84e0f9206ea73c01574ec1dec7c8576c900d6 (diff) | |
download | ruby-55ac27204267ae9f5e90443ef8e7be761bac0915.tar.gz ruby-55ac27204267ae9f5e90443ef8e7be761bac0915.tar.xz ruby-55ac27204267ae9f5e90443ef8e7be761bac0915.zip |
* transcode.c (rb_econv_open): reverse the order of decorders.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | transcode.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Sep 9 20:21:54 2008 Tanaka Akira <akr@fsij.org> + + * transcode.c (rb_econv_open): reverse the order of decorders. + Tue Sep 9 20:18:26 2008 Tanaka Akira <akr@fsij.org> * transcode.c (rb_econv_open0): num_encoders and num_decoders removed. diff --git a/transcode.c b/transcode.c index a68558a78..4895999be 100644 --- a/transcode.c +++ b/transcode.c @@ -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; |