summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Goddard Rosa <andre.goddard@gmail.com>2009-06-02 09:36:28 -0300
committerAustin Foxley <austinf@cetoncorp.com>2009-07-09 01:30:23 -0700
commit54ad9db80a20fd73d963b13452f807732e790f77 (patch)
treefb1ccde8128895a6ca19fa2b34aedbc84acccd3e
parente3d88875a4ec24982e26b1660c638c81f2623e7c (diff)
downloaduClibc-alpine-54ad9db80a20fd73d963b13452f807732e790f77.tar.bz2
uClibc-alpine-54ad9db80a20fd73d963b13452f807732e790f77.tar.xz
wchar: fix inverted parameters in error message
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@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--libc/misc/wchar/wchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c
index 1ca4600b4..099ac3935 100644
--- a/libc/misc/wchar/wchar.c
+++ b/libc/misc/wchar/wchar.c
@@ -1679,7 +1679,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;