public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
* iconv: illegal input sequence
@ 2021-03-10  9:09 Lokesh Janghel
  2021-03-10  9:20 ` Florian Weimer
  0 siblings, 1 reply; 8+ messages in thread
From: Lokesh Janghel @ 2021-03-10  9:09 UTC (permalink / raw)
  To: libc-alpha, libc-locales; +Cc: Umesh Kalappa

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

Hi,

I am working on the charset conversion from cp932 to utf8.
And got the following problem with gcc-8.3:
$ccppc -E test.cxx -finput-charset=cp932
cc1plus: error: conversion from cp932 to UTF-8 not supported by iconv

And I am facing error like "iconv: illegal input sequence at position 85"
When I try to convert with:
$iconv -f cp932 -t utf8 test.cxx

Can you help me with the issue if I am following the wrong step or
missing something?
Please let me know your thoughts on the problem.

Thanks and regards,
Lokesh Janghel

[-- Attachment #2: test.cxx --]
[-- Type: text/plain, Size: 150 bytes --]

#if 0
#include <vxWorks.h>
#include <stdio.h>
#endif

void test_sjis()
{
    printf("�����Shift-JIS�̃e�X�g�ł��B\n");
}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-31 13:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10  9:09 iconv: illegal input sequence Lokesh Janghel
2021-03-10  9:20 ` Florian Weimer
2021-03-30  5:22   ` Lokesh Janghel
2021-03-30  5:46     ` Florian Weimer
2021-03-30  6:30       ` Lokesh Janghel
2021-03-30  8:22     ` Andreas Schwab
2021-03-31 13:02       ` Lokesh Janghel
2021-03-31 13:12         ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).