Package: indent
Version: 2.2.9-7
severity: serious

If used with an utf8 language, a define that points to a string 
containing invalid utf8 characters is removed. The test case 
below uses a latin1 ä, which was replaced with a <?> by the 
terminal.

How to reproduce:


$ env | grep LANG
LANG=de_DE.UTF-8

$ cat test.c
/* before */
#define FOO "b�r"
/* after */

$ grep FOO test.c | hd
00000000  23 64 65 66 69 6e 65 20  46 4f 4f 20 22 62 e4 72  |#define FOO
"b.r|
00000010  22 0a                                             |".|
00000012

$ indent test.c

$ cat test.c
/* before */

/* after */

Sincerely,
Joachim






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to