[Gambas-user] Changed behaviour of IsDate?? in latest revision

Jussi Lahtinen jussi.lahtinen at ...626...
Tue Oct 23 21:15:29 CEST 2012


$ LANG=fr_FR.utf8 LC_TIME=fi_FI.utf8 gbx3 -e 'IsDate("2488329.65453707")'
True
$ LANG=fr_FR.utf8 LC_TIME=en_US.utf8 gbx3 -e 'IsDate("2488329.65453707")'
False

Jussi



On Tue, Oct 23, 2012 at 10:09 PM, Jussi Lahtinen
<jussi.lahtinen at ...626...>wrote:

> I have no clue how this can have effect on using France language package!
> But to make clear, by problems I mean this command:
>
>
> $ LANG=fr_FR.utf8 gbx3 -e 'IsDate("2488329.65453707")'
> True
>
> So, fully using en_US.UTF-8, that command returns False.
>
> Jussi
>
>
>
>
> On Tue, Oct 23, 2012 at 10:06 PM, Jussi Lahtinen <jussi.lahtinen at ...626...
> > wrote:
>
>> OK. This problem may have started because I installed Finnish language
>> package.
>>
>> If I change my language setup, problem vanishes.
>>
>> This setup doesn't cause problems:
>> $ locale
>> LANG=en_US.UTF-8
>> LANGUAGE=en
>> LC_CTYPE="en_US.UTF-8"
>> LC_NUMERIC=en_US.UTF-8
>> LC_TIME=en_US.UTF-8
>> LC_COLLATE="en_US.UTF-8"
>> LC_MONETARY=en_US.UTF-8
>> LC_MESSAGES="en_US.UTF-8"
>> LC_PAPER=en_US.UTF-8
>> LC_NAME=en_US.UTF-8
>> LC_ADDRESS=en_US.UTF-8
>> LC_TELEPHONE=en_US.UTF-8
>> LC_MEASUREMENT=en_US.UTF-8
>> LC_IDENTIFICATION=en_US.UTF-8
>> LC_ALL=
>>
>>
>> This setup do cause problems:
>> $ locale
>> LANG=en_US.UTF-8
>> LANGUAGE=en
>> LC_CTYPE="en_US.UTF-8"
>> LC_NUMERIC=fi_FI.UTF-8
>> LC_TIME=fi_FI.UTF-8
>> LC_COLLATE="en_US.UTF-8"
>> LC_MONETARY=fi_FI.UTF-8
>> LC_MESSAGES="en_US.UTF-8"
>> LC_PAPER=fi_FI.UTF-8
>> LC_NAME=fi_FI.UTF-8
>> LC_ADDRESS=fi_FI.UTF-8
>> LC_TELEPHONE=fi_FI.UTF-8
>> LC_MEASUREMENT=fi_FI.UTF-8
>> LC_IDENTIFICATION=fi_FI.UTF-8
>> LC_ALL=
>>
>>
>> Jussi
>>
>>
>>
>>
>>
>> On Tue, Oct 23, 2012 at 9:43 PM, Jussi Lahtinen <jussi.lahtinen at ...626...
>> > wrote:
>>
>>>
>>> Note that "fr_FR.utf8" is not a valid value for $LANG on my Ubuntu. It
>>>> should be "fr_FR.UTF-8". I can't say more at the moment.
>>>>
>>>
>>> It seems to be valid. Translations tests I have made accept that
>>> perfectly well.
>>>
>>>
>>> $ LANG=fr_FR.utf8 gbx3 -e 'IsDate("2488329.65453707")'
>>>  True
>>> $ LANG=fr_FR.UTF-8 gbx3 -e 'IsDate("2488329.65453707")'
>>> True
>>> $ LANG=invalid gbx3 -e 'IsDate("2488329.65453707")'
>>> gbx3: warning: cannot switch to language 'invalid'. Did you install the
>>> corresponding locale packages?
>>> False
>>>
>>>
>>> Jussi
>>>
>>
>>
>



More information about the User mailing list