diff options
| author | André Goddard Rosa <andre.goddard@gmail.com> | 2009-06-02 09:36:28 -0300 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-10-12 19:24:34 +0200 |
| commit | 8dd7be29bf1876da3ebb888cf8600d5f45f7e1d4 (patch) | |
| tree | 4f85517f8c286fd7f9d5356ae44c07c758c3ad60 /libc | |
| parent | d144b7c22c6949636a0569c7ab9bac22bc8c87e7 (diff) | |
| download | uClibc-alpine-8dd7be29bf1876da3ebb888cf8600d5f45f7e1d4.tar.bz2 uClibc-alpine-8dd7be29bf1876da3ebb888cf8600d5f45f7e1d4.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: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
| -rw-r--r-- | 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 682f24fe0..a9e029d30 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; |
