| Summary: | sys-apps/lcdtest-1.01: help text cannot be displayed again | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
| Component: | Current packages | Assignee: | Tony Vroon (RETIRED) <chainsaw> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | eric |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Toralf Förster
2007-01-28 16:40:57 UTC
It works for me on 1.02, please try that version. Haven't heard from the user in a week. Will need to know whether 1.02 exhibits the same behaviour, so I know whether to push for 1.02 to stable. version 1.02 shows the same behaviour :-( Could you tell me whether 1.03 works for you? To confirm, 1.03 even works correctly on a 64-bit PowerPC machine with a pretty strange native LCD resolution: chainsaw@jupiter /cvs/gentoo-x86/sys-apps/lcdtest $ lcdtest using video resolution 1360 x 768 I can show & hide the help text as often as I please. (In reply to comment #4) > Could you tell me whether 1.03 works for you? > No, same issue :-( Very well, it's not the architecture you're using, because I can't reproduce this problem on X86, AMD64, PPC & PPC64. Mind trying the following: LC_ALL="C" lcdtest If that works, your locale is (very) weird. (In reply to comment #7) > If that works, your locale is (very) weird. Right direction -it's the german keyboard & shift key which aren't recognized. I changed lcdtest.c (after I tried splint b/c I argued a memory leak but that checker gave to much warnings ...) in the following way : n22 lcdtest-1.03 # diff -u lcdtest.c_orig lcdtest.c --- lcdtest.c_orig 2007-05-06 12:04:26.000000000 +0200 +++ lcdtest.c 2007-05-06 12:04:34.000000000 +0200 @@ -411,6 +411,7 @@ show_help (screen, help_image); key = wait_key (); + printf ("%c was pressed\n", key); switch (key) { case SDLK_ESCAPE: @@ -516,6 +517,7 @@ help_flag = 2; break; default: + printf ("cannot recognize key %c\n", key); break; } } and got after start of the executable and typing (in that order ) shift + ? shift + / shift + q the following output at the command line: n22 lcdtest-1.03 # ./lcdtest using video resolution 1400 x 1050 0 was pressed cannot recognize key 0 ß was pressed cannot recognize key ß 7 was pressed q was pressed Please consider that the german umlauts (ä, ö and ü) are recognized correctly, but neither their upper case (Ä, Ö, Ü) - so it's not the locale itself, isn't it ? Here is the output for the umlauts (äöüÄÖÜ) : n22 lcdtest-1.03 # ./lcdtest using video resolution 1400 x 1050 ä was pressed cannot recognize key ä ö was pressed cannot recognize key ö ü was pressed cannot recognize key ü 0 was pressed cannot recognize key 0 ä was pressed cannot recognize key ä ö was pressed cannot recognize key ö ü was pressed cannot recognize key ü q was pressed And furthermore, lcdtest works fine with this :
tfoerste@n22 ~ $ cat /tmp/p
--- xorg.conf 2007-05-06 12:41:32.000000000 +0200
+++ xorg.conf.ok 2007-05-06 12:37:50.000000000 +0200
@@ -35,11 +35,11 @@
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
- #Option "XkbRules" "xorg"
- #Option "XkbModel" "pc105"
- #Option "XkbLayout" "de"
- #Option "XkbVariant" "nodeadkeys"
- #Option "XkbOptions" "eurosign:e"
+ Option "XkbRules" "xorg"
+ Option "XkbModel" "pc105"
+ Option "XkbLayout" "de"
+ Option "XkbVariant" "nodeadkeys"
+ Option "XkbOptions" "eurosign:e"
EndSection
So it doesn't recognize the german keyboard layout :-(
Send the following upstream to eric@brouhaha.com : Hi, nice app, but has an issue which is discussed here : https://bugs.gentoo.org/show_bug.cgi?id=164258 In short: The character ''?' and '/' are ocated at the same key for an english keyboard, but for a german layout the char '?' is located to the right of the key '0' and only accessable via the shift key. Similar issue for the char '7' which is "shift + 7" for a german keyboard. Fixed in lcdtest 1.04. Now uses SDL's key event Unicode mapping feature, so it should support non-US keyboard layouts correctly. Will commit this to the portage tree. Thank you. +*lcdtest-1.04 (07 May 2007) + + 07 May 2007; Tony Vroon <chainsaw@gentoo.org> +lcdtest-1.04.ebuild: + Version bump, closes bug #164258. Thanks to Toralf Förster + <toralf.foerster@gmx.de> and Eric Smith <eric@brouhaha.com>. Thanks guys! |