[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] invalid escaped char
From: |
s duclos |
Subject: |
[Tinycc-devel] invalid escaped char |
Date: |
Fri, 3 Oct 2003 12:40:09 -0700 (PDT) |
Hi,
Got this message: invalid escaped char
$ tcc -v
tcc version 0.9.19
$ cat test.c
#include <stdlib.h>
#define surrogateLow "\<90>00"
int main(){
printf(surrogateLow "\n");
return 1;
}
$ tcc test.c
test.c:2: invalid escaped char
$ gcc --version
gcc (GCC) 3.3.2 20030908 (Debian prerelease)
...
$gcc test.c
test.c:4:12: warning: unknown escape sequence: '\220'
$./a.out
$
The surrogateLow string in hex is "5c 90 30 30"
$ hexdump -C test.c
00000000 23 69 6e 63 6c 75 64 65 20 3c 73 74 64 6c
69 62 |#include <stdlib|
00000010 2e 68 3e 0a 23 64 65 66 69 6e 65 20 73 75
72 72 |.h>.#define surr|
00000020 6f 67 61 74 65 4c 6f 77 20 22 5c 90 30 30
22 0a |ogateLow "\.00".|
00000030 69 6e 74 20 6d 61 69 6e 28 29 7b 0a 20 20
20 20 |int main(){. |
00000040 70 72 69 6e 74 66 28 73 75 72 72 6f 67 61
74 65 |printf(surrogate|
00000050 4c 6f 77 20 22 5c 6e 22 29 3b 0a 20 20 20
20 72 |Low "\n");. r|
00000060 65 74 75 72 6e 20 31 3b 0a 7d 0a
|eturn 1;.}.|
0000006b
Thanks,
Sylvain.
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
- [Tinycc-devel] invalid escaped char,
s duclos <=