This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: \0ÿ in strings
- To: Per Hedbor <per at idonex dot se>
- Subject: Re: \0ÿ in strings
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Sun, 27 Feb 2000 09:21:01 -0800
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <200002271051.LAA17691@godzilla.idonex.se>
On Sun, Feb 27, 2000 at 11:51:12AM +0100, Per Hedbor wrote:
> The newest snapshot version of gcc gives errors when it encounters a ÿ
> after encountering a \0 in a string:
>
> test.c:1: Unterminated string constant
> test.c:2: Unterminated string constant
> test.c:2: parse error at end of input
>
> The whole contents of 'test.c' is:
> unsigned char *f = "\0ÿ";
Thank you for your report. This has not yet been fixed. I have added
a test to our testsuite.
> Another bug encountered is:
>
> /export/local/src/Pike/0.7-beta/src/modules/Image/encodings/_xpm.c: In function `decode_color':
> /export/local/src/Pike/0.7-beta/src/modules/Image/encodings/_xpm.c:133: Internal compiler error in `find_reloads', at reload.c:3656
> Please submit a full bug report.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>
> As for the full bug report: The source of pike is rather
> large. Actually, it is way to large to post here.
You don't have to post the entire source of pike, just the
preprocessed source of the file that caused the problem. Please
follow the instructions at the URL printed by the compiler.
zw