Bug 33842 - Decimal separator on Entry not available running swedish culture
Summary: Decimal separator on Entry not available running swedish culture
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-09-10 04:51 UTC by Joakim Carselind
Modified: 2017-10-24 10:17 UTC (History)
4 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Code to workaround decimal separator (,) not working running swedish culture (se-SV) (909 bytes, text/plain)
2015-09-11 03:09 UTC, Joakim Carselind
Sample app with decimal separator issue (73.52 KB, application/zip)
2016-08-09 14:29 UTC, Gaston Nola

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Joakim Carselind 2015-09-10 04:51:50 UTC
I have set the keyboard type to the entry cell to `Numeric` and running swedish culture the decimal separator "," is not written to the field when pressed.

I created a custom renderer where I set the `Control.KeyListener = DigitsKeyListener.GetInstance("0123456789,.");` and then it works as expected.

The list of possible digits should probably be resolved using the CurrentCulture.NumberStyles to check for allowed decimal separator and thousand group separator.

Visual Studio Emulator Android Lollipop 5
Comment 1 Paul DiPietro [MSFT] 2015-09-10 16:14:27 UTC
I can reproduce the ',' button not functioning when setting the Android system language to Swedish and using a keyboard with the Numeric setting. If you want to provide any sort of project sampling what you've personally done it could always be of help.
Comment 2 Joakim Carselind 2015-09-11 03:09:13 UTC
Created attachment 12865 [details]
Code to workaround decimal separator (,) not working running swedish culture (se-SV)

Here is how I solved the problem. Added some comments about how to progress if to implement this in Xamarin.Forms.
Comment 3 E.Z. Hart [MSFT] 2016-04-13 18:58:55 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team
Comment 4 Gaston Nola 2016-08-09 14:29:35 UTC
Created attachment 16956 [details]
Sample app with decimal separator issue


I've done a sample test using X.F 2.3.1, setting the language to es-ES, and the issue is still happening. I don't know whether this is problem on my app or Xamarin.Forms.