Bug 2215739

Summary: Decimal separator on keypad doesn't respect regional formatting under Wayland
Product: [Fedora] Fedora Reporter: Mattia Verga <mattia.verga>
Component: plasma-desktopAssignee: KDE SIG <kde-sig>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: hygorhernane, jgrulich, kde-sig, rdieter, than
Target Milestone: ---Keywords: Desktop
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2143446    

Description Mattia Verga 2023-06-18 07:28:04 UTC
When entering decimal numbers using keyboard keypad, the decimal separator key is always entered as '.' (dot) even when regional settings are set to use decimal separator to ',' (comma).

This happens on several languages like Italian, German, etc.

This only happens when using a Wayland desktop session. Using the same settings (plasma regional settings, keyboard map) running in a X11 desktop session works as expected.

I've tested the bad behavior on different packages like Libreoffice Calc (GTK), Calligra (QT) and even in the test input field under plasma system settings -> input devices -> keyboard.

I suppose the bug has been present since the switch from X11 to Wayland as I originally reported upstream more than one year ago: https://bugs.kde.org/show_bug.cgi?id=449706
Not sure I chose the right component, though.

See also LibreOffice discussion on bug report https://bugs.documentfoundation.org/show_bug.cgi?id=143540

Reproducible: Always

Steps to Reproduce:
1. Set regional settings o a language like Italian or German (using ',' as decimal separator)
2. Logout/login to apply regional settings. Use a Wayland desktop session.
3. open a spreadsheet app like LO Calc or Calligra and try to enter a decimal number using keypad
Actual Results:  
The number is entered as '12.34' which is recognized as text because of the '.'

Expected Results:  
The number is entered as '12,34' which is recognized as number because uses the right decimal separator

Comment 1 Fedora Blocker Bugs Application 2023-06-18 07:32:17 UTC
Proposed as a Blocker for 39-final by Fedora user mattia using the blocker tracking app because:

 Breaks expected functionality in several packages by entering numbers in the wrong format (spreadsheets recognize numbers as text instead of decimal numbers)

Comment 2 Fedora Release Engineering 2023-08-16 08:11:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.