<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>It is really a mess. F.e. in Switzerland some cantons use the comma, some the decimal point (officially). On the federal level they use the comma - I guess this is what Switzerlands official positions is: use the comma as decimal separator. BUT: in practice most people I know use the point as a decimal separator. See also <a href="https://en.wikipedia.org/wiki/Decimal_mark">https://en.wikipedia.org/wiki/Decimal_mark</a></p>
<p>What a mess. Probably we are the only country listed in both sections: comma and the point (depending on the province). I don't know who had this brilliant idea that some provinces would use the one and some the other.</p>
<p>If someone works on locale changes, I would propose that there would be a separate setting where people can choose if they want the point or the comma as a decimal separator.</p>
<p>Thanks and greetings,</p>
<p>Andreas</p>
<p><br /></p>
<p>On 2017-10-02 01:21, Nyall Dawson wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">On 30 September 2017 at 21:22, Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">On 30-09-17 10:18, Richard Duivenvoorde wrote:<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Given QGIS is used in so many different languages/locales, I think QGIS3<br /> is the right time to handle this in a proper way?<br /> <br /> Or is my testing just plain wrong :-)</blockquote>
<br /> Ok, see comments at the issue [0], I think there is nothing wrong with<br /> the separator handling of the delimitedtextprovider.<br /> It would be cool though if the dialog would check the 'Decimal separator<br /> is comma' when the locale is european (and maybe show the locale there...)<br /> <br /> And my test was plain wrong: 1,0 will NEVER be a valid float in Python.<br /> '1,0' is, if you have the right locale, see [1]<br /> Note that this is about plain Python. In our case there is Qt in between...<br /> <br /> I think though that changing the locale and then asking for the locale<br /> in QGIS should show the locale used.<br /> <br /> I hope somebody can tell something about this?</blockquote>
<br /> I tried to clear up some of these issues during the Nodebo hackfest, but:<br /> <br /> 1. coming from a locale which uses the NORMAL "." as decimal<br /> separator, I have no idea what the expected/proper behavior should be<br /> for locales which use ","<br /> <br /> 2. no-one I asked from these locales could even give me a definitive<br /> answer about what the correct behavior is<br /> <br /> So I quickly decided to let someone else handle this mess ;)<br /> <br /> Nyall<br /> _______________________________________________<br /> QGIS-Developer mailing list<br /> <a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br /> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
</blockquote>
<p><br /></p>

</body></html>