This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fastjar question


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]