Bug#404825: vim: "-b" option does not work

Sugano Yoshihisa (E) koshian at misao.gr.jp
Fri Dec 29 19:44:08 UTC 2006


At Thu, 28 Dec 2006 21:04:04 -0500,
James Vega wrote:
> On Thu, Dec 28, 2006 at 10:00:15PM +0900, Sugano Yoshihisa(E) wrote:
> > from vim(1)
> >        -b          Binary  mode.   A  few options will be set that makes it
> >                    possible to edit a binary or executable file.
> > 
> > But it does not work.
> 
> What doesn't work about it?  You haven't provided much information for
> me to see why you think it is not acting as intended.

"-b" option is that vim is used as binary editor like a beav(1).

view is:
00000000 | 7f454c46 01010100 00000000 00000000 | .ELF............
00000010 | 02000300 01000000 e09a0408 34000000 | ............4...
00000020 | 182a0100 00000000 34002000 08002800 | .*......4. ...(.
00000030 | 1a001900 06000000 34000000 34800408 | ........4...4...
00000040 | 34800408 00010000 00010000 05000000 | 4...............
00000050 | 04000000 03000000 34010000 34810408 | ........4...4...
-snip-

but...

$ vim -b /bin/ls
^?ELF^A^A^A^@^@^@^@^@^@^@^@^@^B^@^C^@^A^@^@^@^D^H4^@^@^@^X*^A^@^@^@^@^@4^@ ^@^H^^
@(^@^Z^@^Y^@^F^@^@^@4^@^@^@4~@^D^H4~@^D^H^@^A^@^@^@^A^@^@^E^@^@^@^D^@^@^@^C^@^@^@4^A^@^@4~A^D^H4~A^D^H^S^@^@^@^S^@^@^@^D^@^@^@^A^@^@^@^A^@^@^@^@^@^@^@^@~@^D^H^@
-snip-

If it was old vim, it was not so. vim binary mode is disabled on upstream?
If it is so, this bug is document bug.


-- 
Sugano "Koshian" Yoshihisa(E) <mailto:koshian at misao.gr.jp>
Website: <http://www.misao.gr.jp/~koshian/>
PGP fingerprint [6367 2352 3995 214E B954  A1FE 33D9 C918 606F 7C15]




More information about the pkg-vim-maintainers mailing list