RE: bug when processing binary file for gnu win32 sed

hongqi wang <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Please try this file as below I did:    c:\Pim\test\test.old>sed -b -i "s/00000000000000000000000000000000/11111111111111111111111111111111/g" MySilu.Mp4-029.torrentAnd attached pic is the result, with the right is original file.

Wang Hongqi

 

> Date: Sun, 1 Jul 2012 15:51:04 +0200
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]
> Subject: Re: bug when processing binary file for gnu win32 sed
> 
> Il 18/06/2012 17:20, Eli Zaretskii ha scritto:
> >> sed will expend "0A" to "0D0A" even if I specify the option "-b"
> >> as below:  sed -b -i "s/<source>/<target>/g" Myfile.datthat is
> >> not what I expected since I am dealing with some binary files
> >> but it will break the format. version: 4.2.1download url:
> >> http://gnuwin32.sourceforge.net/packages/sed.htm thanks.
> > 
> > It's a bug in the GnuWin32 port of Sed, not in Sed itself.
> 
> "-b" is part of GNU sed now, but I believe this particular bug has been
> fixed.
> 
> Paolo
MySilu.Mp4-029.torrent (application/octet-stream, 296.6 KB) - not displayed
sed.png (image/png, 139.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.