Package: hexer
Version: 1.0.6-1
Severity: normal
X-Debbugs-Cc: phil...@marek.priv.at

Replacing a nibble (only) has no effect; but the display indicates 
otherwise.

To reproduce:

    $ echo foo > bar                                                            
                                                                                
                                                                 
    $ hd bar                                                                    
                                                                                
                                                                 
    00000000  66 6f 6f 0a                                       |foo.|
    00000004

    $ hexer bar

Now press these keys: r1<ESC>
Now hexer shows

    00000000:  16 6f 6f 0a -- -- -- --  -- -- -- -- -- -- -- --  
foo.------------

Press :wq<CR>; hexer quits.

    $ echo $?
    0

No error reported.

But the file isn't modified:

    $ hd bar                                                                    
                                                                                
                                                                 
    00000000  66 6f 6f 0a                                       |foo.|
    00000004


Scrolling away and back shows the unmodified byte; but that doesn't work 
for small files, and the intermediate display shows the expected change.

Hexer should also accept single-nibble changes!


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.19.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_AT:de
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages hexer depends on:
ii  libc6      2.35-3
ii  libtinfo6  6.3+20220423-2

hexer recommends no packages.

hexer suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: can't check hexer file /usr/share/doc/hexer/NEWS.gz (Wide character in 
subroutine entry)
debsums: can't check hexer file /usr/share/doc/hexer/changelog.Debian.gz (Wide 
character in subroutine entry)
debsums: can't check hexer file /usr/share/man/man1/hexer.1.gz (Wide character 
in subroutine entry)

Reply via email to