summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-09 11:22:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-09 11:22:17 +0000
commit55ac27204267ae9f5e90443ef8e7be761bac0915 (patch)
tree8e960f07524080763e48d536a90f4bbc4dfd2ce2
parenta8d84e0f9206ea73c01574ec1dec7c8576c900d6 (diff)
downloadruby-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--ChangeLog4
-rw-r--r--transcode.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f48e1c5b9..4b1b0d916 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;