Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Russian locale (with comma as decimal separator) #13

Open
Bougakov opened this issue Nov 14, 2016 · 0 comments
Open

Comments

@Bougakov
Copy link

It appears that the program is having issues working in Windows with non-US locale set.

I have Windows 10 64bit with Russian locale; it uses comma, not point as a decimal delimiter. All the numbers that appear in the main window are displayed with a points before decimal parts.

But it seems that internally the program operates with correct localized functions - and crashes when it sees the "wrong" decimal delimiter.

image

If I create a temporary Windows account and set its locale to UK or US, program works.

Maybe the problem is that reading EEPROM always gives you the numbers with decimal point as separator. In US locale treating these strings as numbers just works, in Russian locale it doesn't.

Please check this for details: https://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.numberdecimalseparator%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants