Bug#1021710: "r"eplacing high nibble doesn't take effect

2022-10-18 Thread Peter Pentchev
control: tag -1 + confirmed upstream

On Thu, Oct 13, 2022 at 01:41:36PM +0200, Philipp Marek wrote:
> 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.

Thanks for your interest in hexer! This is related to another bug
I noticed recently; I will try to fix it in the next couple of days.

G'luck,
Peter

-- 
Peter Pentchev  r...@ringlet.net r...@debian.org p...@storpool.com
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13


signature.asc
Description: PGP signature


Bug#1021710: "r"eplacing high nibble doesn't take effect

2022-10-13 Thread Philipp Marek
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

 
  66 6f 6f 0a   |foo.|
0004

$ hexer bar

Now press these keys: r1
Now hexer shows

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

Press :wq; hexer quits.

$ echo $?
0

No error reported.

But the file isn't modified:

$ hd bar

 
  66 6f 6f 0a   |foo.|
0004


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)