Bug 101046

Summary: numeric dot replaced by period with french keyboard
Product: [Retired] Red Hat Linux Reporter: Olivier Benghozi <olivier.benghozi+redhatbugzilla>
Component: gtk2Assignee: Owen Taylor <otaylor>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: daniel.roche, mharris, otaylor
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-10-15 16:45:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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

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

In these programs (but maybe in other ones too):
nautilus
gnome-terminal
gedit

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

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


Additional info:
No problem with Konsole or Konqueror

Comment 1 Owen Taylor 2003-07-28 20:13:44 UTC
See:

 http://bugzilla.gnome.org/show_bug.cgi?id=105161

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 21:42:09 UTC
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 19:57:56 UTC
The bug in xfree86.org has been closed. Comments are:

"
------- Additional Comments From eich  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 
settings. 
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 09:57:44 UTC
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 21:32:47 UTC
*** Bug 90670 has been marked as a duplicate of this bug. ***

Comment 6 Owen Taylor 2003-10-15 16:45:51 UTC
* Fri Sep  5 2003 Owen Taylor <otaylor> 2.2.4-2.1
- Fix up tutorial in packaging (#90197), add FAQ
- Back out change to make KP_Decimal interpretation dependent on locale
  (#101046)