minline icon indicating copy to clipboard operation
minline copied to clipboard

SIGSEGV with cyrillic input

Open mwgkgk opened this issue 7 years ago • 4 comments

SIGSEGV: Illegal storage access. (Attempt to read from nil?)

Happens instantly when I press a (character) button when in ru_RU.KOI8-R layout

mwgkgk avatar Nov 24 '17 12:11 mwgkgk

Non-urgent

💖

mwgkgk avatar Nov 24 '17 13:11 mwgkgk

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 :(

h3rald avatar Nov 24 '17 16:11 h3rald

$ 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.

mwgkgk avatar Nov 24 '17 17:11 mwgkgk

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.

h3rald avatar Jan 28 '20 12:01 h3rald