Bug#567041: [Patch] xxd: Fix lossy reverse conversion

Bram Moolenaar Bram at Moolenaar.net
Tue Feb 9 20:20:33 UTC 2010


James -

> On Mon, Feb 8, 2010 at 3:05 PM, Bram Moolenaar <Bram at moolenaar.net> wrote:
> >
> > James -
> >
> >> As described below, xxd doesn't correctly convert free-form hex dumps to
> >> their original form. Â Attached patch, from Jean-Baptiste Wons, fixes the
> >> issue.
> >
> > That input doesn't look like postscript form. Â This is a line of
> > postscript form:
> >
> > 74655265616465725f49004d5475746f7269616c5f5f43506572736f6e5f
> >
> > Looks like the file is not in a supported format. Â If you would really
> > like to add this format, the dump must also be added.
> 
> According to xxd's man page:
> 
>   Use the combination -r -p to read plain hexadecimal dumps without line
>   number information and without a particular column layout. Additional
>   Whitespace and line-breaks are allowed anywhere.
> 
> The last sentence, in particular, seems to indicate that xxd should be
> able to handle the format of the file, even if it isn't postscript
> format.

Aha, so it's not symmetric.  Well, OK then.

- Bram

-- 
hundred-and-one symptoms of being an internet addict:
210. When you get a divorce, you don't care about who gets the children,
     but discuss endlessly who can use the email address.

 /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///





More information about the pkg-vim-maintainers mailing list