bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] garbage+original after indented version


From: Alexander Elbs
Subject: [Bug-indent] garbage+original after indented version
Date: Tue, 28 May 2002 09:42:38 +0200 (CEST)

hi,

when i do an:
indent -l78 -sc -fc1 < indent_bug.h | less
i get the (correctly) indented file but after it a few bytes garbage
(mostly \0) and the original (unindented) file is appended.

the occurence of the bug seems to depend on a few things:
- no newline, but space (0x20) at end of file
- a comment ( /* */ ) is at the end
- the size of the file has to be >5k

well, at least with the attached file (some autogenerated dummy code, to
see if the autogenerater works) the bug occured with debian's
indent version 2.2.7-2 und with the original version 2.2.6.

Ciao
Alex

-- 
Alexander Elbs  ***  eMail address@hidden

Attachment: indent_bug.h
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]