After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 101225 - Translation of KP_Decimal should be locale dependent
Translation of KP_Decimal should be locale dependent
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
2.1.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-12-14 21:34 UTC by Owen Taylor
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2002-12-14 21:34:08 UTC
Keyboards in Europe tend to have , on the numeric keypad, not .,
but the key still produces KP_Decimal as the keysym. GDK probably
should translate KP_Decimal differently depending on the current
LC_CTYPE setting. (See g_ascii_strtod for an example of the
use of localeconv... seems to be portable to Windows.)
Comment 1 Owen Taylor 2002-12-14 21:36:36 UTC
a) LC_NUMERIC setting, not LC_CTYPE
b) This refers to the functions in gdkkeyuni.c
Comment 2 Christian Rose 2002-12-14 21:52:32 UTC
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=50282 has some
info on what layouts are affected. These include Sweden, Finland,
Denmark, Netherlands, Norway, Switzerland, Germany. Perhaps there are
more but these are the ones I could verify.
Comment 3 Owen Taylor 2002-12-14 22:04:58 UTC
We can't do anything based on the keyboard layout ... either the
keyboard layout tells me what the key is (uses comma, period),
or we have to go based on the information we do have ... the
locale.

Comment 4 Christian Rose 2002-12-14 22:33:40 UTC
Yeah, that's why I think basing the characters entered on the locale
is wrong to begin with - the characters should simply match the
characters printed on the keyboard keys.
Comment 5 Owen Taylor 2003-01-29 22:22:03 UTC
Well, that's a question of X configuration; as long as
KP_Decimal is being used, the translation should depend
on the locale.

Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkkeyuni.c (get_decimal_char): Make the
        translation of GDK_KP_Decimal dependent on LC_NUMERIC.
        (#101225)