Bug 101046 - numeric dot replaced by period with french keyboard
numeric dot replaced by period with french keyboard
Product: Red Hat Linux
Classification: Retired
Component: gtk2 (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Owen Taylor
David Lawrence
: 90670 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2003-07-28 15:32 EDT by Olivier Benghozi
Modified: 2007-04-18 12:56 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-10-15 12:45:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Olivier Benghozi 2003-07-28 15:32:21 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 

Description of problem:
Language selected: French. Keyboard selected: French.

In these programs (but maybe in other ones too):

-> using the dot of the numeric keyboard (the delete/. key), gives a 
period "," instead of a dot "."
Using the other dot on the left part of the keyboard gives a dot.

Konsole hasn't this problem, nor several other apps.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. type numeric key .
2. see ,

Additional info:
No problem with Konsole or Konqueror
Comment 1 Owen Taylor 2003-07-28 16:13:44 EDT


for why this is a X keymap bug; (actually missing key symbols,
but it could be worked around by using the normal period/comma 
key symbols for that key in the keymap)

Reassigning to the XFree86 component, but you should file a bug
upstream in bugs.xfree86.org
Comment 2 Olivier Benghozi 2003-07-28 17:42:09 EDT
It's worked around (or fixed?) in Mandrake 9.1 (maybe this way?): no ","
So the workaround could be ported to RedHat, so it works before XFree86 people 
decide to change this.

Anyway I've added a bug at http://bugs.xfree86.org/show_bug.cgi?id=534
Comment 3 Olivier Benghozi 2003-07-29 15:57:56 EDT
The bug in xfree86.org has been closed. Comments are:

------- Additional Comments From eich@xfree86.org  2003-29-07 06:59 -------
X knows two key symbols that can meaningfully be assigned to this:
KP_Decimal and KP_Separator. XLookupString() returns a '.' for the 
first and a ',' for the latter. This is independent of any LC_NUMERIC 
The translation is done in _XkbHandleSpecialSym() with a very simple 
(keysym & 0x7F).
Therefore the comment one can find in many places 
"/* separator, often comma */" is mostly misleading. The mapping to
the locale dependent values is therefore done in the keyboard mapping,
not when translating the keyboard symbols.
What are therefore the conclusions? 
The keysym returned should depend on the value for the locale:
KP_Decimal should be returned if the decimal separator is a '.', 
KP_Separator should be returned if it is a ','.
The application should be prepared to do the 'right thing' when it
reads KP_Decimal, KP_Separator, '.' or ','.

I will change the symbols/fr file to generate a KP_Separator instead.
If necessary gtk should be fixed to generate the correct output.
Since KP_Decimal and KP_Separator are bound to specific keyboard
symbols already I don't recommend a LC_NUMERIC dependent translation
on top.

I don't agree that a terminal emulator should always generate a '.'
for this key. Applications should be fixed to obey the LC_NUMERIC
setting instead.

I understand the following part: "If necessary gtk should be fixed to generate 
the correct output."
Comment 4 Mike A. Harris 2003-08-01 05:57:44 EDT
I read the upstream report as well now, and resolution.  I'm assuming whatever
the problem is, that it is solved now in XFree86 CVS, and will appear in
the next release of XFree86.

Reassigning to GTK for now as comments above indicate GTK might require
modification also.
Comment 5 Owen Taylor 2003-08-27 17:32:47 EDT
*** Bug 90670 has been marked as a duplicate of this bug. ***
Comment 6 Owen Taylor 2003-10-15 12:45:51 EDT
* Fri Sep  5 2003 Owen Taylor <otaylor@redhat.com> 2.2.4-2.1
- Fix up tutorial in packaging (#90197), add FAQ
- Back out change to make KP_Decimal interpretation dependent on locale

Note You need to log in before you can comment on or make changes to this bug.