This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/47549] -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8'
- From: "silver24k at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 31 Jan 2011 20:22:15 +0000
- Subject: [Bug preprocessor/47549] -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8'
- Auto-submitted: auto-generated
- References: <bug-47549-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47549
--- Comment #3 from Yu Simin <silver24k at gmail dot com> 2011-01-31 20:22:11 UTC ---
(In reply to comment #2)
> >cc1: error: failure to convert gbk to UTF-8
>
> The preprocessor is only really know how to convert UTF-8 to/from UTF16/32
> LE/BE without the help from the host's iconv.
>
> Your host's iconv is what is failing to do the conversion. I doubt this is a
> GCC bug.
But there is no such error when '-save-temps' is not used and the output object
file seems correct.