legionus / kbd

Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git
https://kbd-project.org
Other
84 stars 41 forks source link

setfont doesn't invoke gzip? #32

Closed nmeum closed 5 years ago

nmeum commented 5 years ago

My Linux distribution (Alpine Linux) recently received an upgrade from kbd 2.0.4 to kbd 2.2.0. I noticed that 2.2.0 behaves a bit different in regards to file handling:

The first setfont invocation definitely used to work with kbd 2.0.4. Is it possible that the decompressor (gzip) is not invoked for the first invocation for some reason and kbd tries to parse the gzip compressed data and fails? strace -f setfont ter-v16n.psf.gz seems to confirm this hypothesis: https://tpaste.us/NKjk

legionus commented 5 years ago

Can you try to reproduce it on master ?

I tried but I didn’t succeed. I ran the command (log attached):

strace -fF -o setfont.log -e file ./setfont lat9w-10.psfu

setfont.log

legionus commented 5 years ago

ooops. I tested wrong case. sorry.

legionus commented 5 years ago

Please test current master.

nmeum commented 5 years ago

Can confirm that the current master fixes this bug.

nmeum commented 5 years ago

Thanks for the fast fix!