minline
minline copied to clipboard
SIGSEGV with cyrillic input
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Happens instantly when I press a (character) button when in ru_RU.KOI8-R layout
Non-urgent
💖
I was gonna “fix it” by adding a nice warning on supporting only ASCII characters... ;)
...but I’ll have a look at it when I get a chance :). What platform are you on? What terminal are you using? What is your terminal encoding?
Needless to say that non-ASCII character support in nimline is totally untested :(
$ uname --all
Linux arch 4.13.12-1-ARCH #1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017 x86_64 GNU/Linux
Reproduced the crash on urxvt, xterm, and alacritty, both within and outside tmux. $LANG is en_US.UTF-8, the russian layout is from XkbLayout switch which is not reflected in $LANG. The russian locale is ru_RU.KOI8-R as mentioned earlier, which is ASCII-compatible and is widespread.
The crash happens instantly when you press a button so I have a feeling this might apply to other languages as well. Mostly annoying when you press a key in wrong layout by accident.
Yeah it happened with accented Italian characters as well... ☹️
Well, for now it only supports ASCII characters, everything else is no longer displayed at all.