[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ncursesw crashes when key_name() is fed with certain characters
From: |
Andreas Krennmair |
Subject: |
ncursesw crashes when key_name() is fed with certain characters |
Date: |
Mon, 4 Jun 2007 13:26:42 +0200 |
User-agent: |
Mutt/1.5.15-muttng (2007-04-06) |
Hi,
I came upon an interesting problem where key_name() from ncursesw
crashes when it is fed with characters like the Euro symbol on a UTF-8
terminal with LC_ALL=en_US.UTF-8. Attached is a test program which makes
it possible to reproduce the issue. When I press "normal" keys like "a"
everything works fine, when I use umlauts like "ä", "ö" or "ü",
key_name() returns NULL, but when I press keys like "€" or enter Greek
characters or Japanese Hiragana, Katakana or Kanji characters, then
key_name() crashes like this:
Program received signal SIGSEGV, Segmentation fault.
0x08056f87 in key_name ()
Current language: auto; currently asm
(gdb) bt
#0 0x08056f87 in key_name ()
#1 0x08048311 in main () at keyname.c:39
(gdb)
Regards,
Andreas
keyname.c
Description: Text document
- ncursesw crashes when key_name() is fed with certain characters,
Andreas Krennmair <=