[git commit 0_9_30] wchar: fix inverted parameters in error message
André Goddard Rosa
andre.goddard at gmail.com
Sat Oct 10 16:44:02 UTC 2009
commit: http://git.uclibc.org/uClibc/commit/?id=8dd7be29bf1876da3ebb888cf8600d5f45f7e1d4
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0_9_30
The error message should output "fromcode -> tocode" rather than
"tocode -> fromcode". Seems to be a typo due to the order of the func
called:
iconv_t iconv_open(const char *tocode, const char *fromcode);
Signed-off-by: André Goddard Rosa <andre.goddard at gmail.com>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
libc/misc/wchar/wchar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c
index 682f24f..a9e029d 100644
--- a/libc/misc/wchar/wchar.c
+++ b/libc/misc/wchar/wchar.c
@@ -1677,7 +1677,7 @@ int main(int argc, char **argv)
goto USAGE;
}
if ((ic = iconv_open(opts[0],opts[1])) == ((iconv_t)(-1))) {
- error_msg( "unsupported codeset in %s -> %s conversion\n", opts[0], opts[1]);
+ error_msg( "unsupported codeset in %s -> %s conversion\n", opts[1], opts[0]);
}
if (opts[3]) { /* -c */
((_UC_iconv_t *) ic)->skip_invalid_input = 1;
--
1.6.3.3
More information about the uClibc-cvs
mailing list