bug-gnu-utils
[Top][All Lists]
Advanced

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

RE: bug when processing binary file for gnu win32 sed


From: hongqi wang
Subject: RE: bug when processing binary file for gnu win32 sed
Date: Tue, 3 Jul 2012 12:41:14 +0800

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: address@hidden
> To: address@hidden
> CC: address@hidden; address@hidden
> 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
                                          

Attachment: MySilu.Mp4-029.torrent
Description: Binary data

Attachment: sed.png
Description: PNG image


reply via email to

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