summaryrefslogtreecommitdiff
path: root/console
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2006-01-23 22:16:53 +0000
committerMarcus Brinkmann <marcus@gnu.org>2006-01-23 22:16:53 +0000
commitbb291339dc3ae5bddcefd4b11839f2f520c5e40e (patch)
tree1c22691352500ca5e3f9e81d1178e4a8d4569691 /console
parentf470a3bd740961aba761564febc2f0ccc8ce43a1 (diff)
2006-01-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
* input.c (input_create): Fix arguments order of iconv_open() call.
Diffstat (limited to 'console')
-rw-r--r--console/ChangeLog5
-rw-r--r--console/input.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/console/ChangeLog b/console/ChangeLog
index 953bda16..a67022b2 100644
--- a/console/ChangeLog
+++ b/console/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * input.c (input_create): Fix arguments order of iconv_open()
+ call.
+
2005-01-19 Marco Gerards <metgerards@student.han.nl>
* README.UTF8: New file.
diff --git a/console/input.c b/console/input.c
index 29e93c76..14879d07 100644
--- a/console/input.c
+++ b/console/input.c
@@ -62,7 +62,7 @@ error_t input_create (input_t *r_input, const char *encoding)
condition_init (&input->data_available);
condition_init (&input->space_available);
- input->cd = iconv_open ("UTF-8", encoding);
+ input->cd = iconv_open (encoding, "UTF-8");
if (input->cd == (iconv_t) -1)
{
free (input);