This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fastjar question
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 06 Jan 2004 10:29:20 +0530
- Subject: Re: fastjar question
- References: <3FF954D2.9050004@pop.agri.ch>
Andreas Tobler wrote:
> Second, this thing is much more annoying, the fastjar jar creates a ^@
> entry as last 'character' in the MANIFEST. This is in my opinion wrong.
>
> A look into the fastjar source I found the place and I modified it to
> ommit this ^@. Though, I don't understand the source. Here I'd like to
> hear if this is intended behaviour or a possible bug.
> Below the diff.
Though you don't mention it, I'm guessing that you're
using vi(m) to view the manifest file. In this case,
ASCII NUL bytes (0x00) are shown as '^@' by the editor
and therefore this is most likely due to "overstorage"
of a string by the program.
That's why your fix fixes this problem.
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/