[Development] QLocale work

Shaw Andy Andy.Shaw at digia.com
Wed Jan 18 22:24:36 CET 2012



On 1/18/12 2:21 PM, "lars.knoll at nokia.com" <lars.knoll at nokia.com> wrote:
>>
>>We need to avoid the problem of printf / scanf that use different decimal
>>conventions depending on the user locale. That means the naive
>>implementation 
>>will be unable to parse the data it generated under a different locale
>>settings.
>>
>>This is a slightly behaviour-incompatible change, but one I feel is
>>justified: 
>>reading / parsing of data with comma as a decimal separator was already
>>broken, so we don't break it further; generating of data without
>>thousands 
>>separators and with dots instead of commas for decimals is a minor
>>inconvenience.
>
>Yes, I'm all for changing this to use the C locale. Let's simply document
>it.

For what it is worth I also agree that it should be changed, having
recently having to deal with the QDoubleValidator problem when it came to
this became a right pain so making it only use the C locale unless
explicitly told otherwise would be fine by me :)

Andy




More information about the Development mailing list