public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/21521] New: -finput-charset -save-temps converts characters twice
@ 2005-05-11 22:00 jsm28 at gcc dot gnu dot org
2005-08-27 22:25 ` [Bug preprocessor/21521] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-05-11 22:00 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]
Compile the following iso-8859-1 file with -finput-charset=iso-8859-1. In the
output the string has been converted to UTF-8 as documented. Compile it with
-finput-charset=iso-8859-1 -save-temps. In the output the string has been
converted to UTF-8, then that UTF-8 treated as ISO-8859-1 and converted to UTF-8
again, which is incorrect. If preprocessed output is always in UTF-8 then
preprocessed input must always be treated as in UTF-8 regardless of -finput-charset.
const char s[] = "§";
Compilation time test not requiring execution or scanning assembler:
int a = L'§';
compiled with -finput-charset=iso-8859-1 -save-temps gives a bogus "warning:
character constant too long for its type".
--
Summary: -finput-charset -save-temps converts characters twice
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21521
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug preprocessor/21521] -finput-charset -save-temps converts characters twice
2005-05-11 22:00 [Bug preprocessor/21521] New: -finput-charset -save-temps converts characters twice jsm28 at gcc dot gnu dot org
@ 2005-08-27 22:25 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-27 22:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-27 22:23 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-08-27 22:23:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21521
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-27 22:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-11 22:00 [Bug preprocessor/21521] New: -finput-charset -save-temps converts characters twice jsm28 at gcc dot gnu dot org
2005-08-27 22:25 ` [Bug preprocessor/21521] " pinskia at gcc dot gnu dot org
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).