Re: Decimal separator and 4GL_NUMERIC
Alessandro Vercelli <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <[email protected]> |
I checked enviroment again and some new tests showed a possible little bug and its workaround:
$ aubit-config A4GL_NUMERIC
,.
$ env|grep A4GL_NUMERIC
$ ./formtest.4ae
Input is 2347
xxxxxxxxxxxxxxxxxxx
Test 2347.00
xxxxxxxxxxxxxxxxxxx
Logoff and new login for the user, just to reload environment
$ aubit-config A4GL_NUMERIC
,.
$ export A4GL_NUMERIC=,.
$ env|grep A4GL_NUMERIC
A4GL_NUMERIC=,.
$ ./formtest.4ae
Input is 66656
xxxxxxxxxxxxxxxxxxx
Test 66656,00
xxxxxxxxxxxxxxxxxxx
The workaround is that exporting the variable it works.
Thanks,
Alessandro
---- On Fri, 18 Dec 2015 10:42:43 +0100 Mike Aubury wrote ----
>That these are making no difference has me worried - are you sure they
>are not set somewhere else ?
>
>If you try :
>
>$ aubit-config A4GL_NUMERIC
>What does that say ?
>
>To make absolutely sure - set it in the environment :
>
>$ export A4GL_NUMERIC=,.
>
>(I'm not sure ALLOWCOMMAINDECIMAL does anything any more - at least -
>I cant see it in the code)
>
>
>
>On 17 December 2015 at 13:37, Alessandro Vercelli <[email protected]> wrote:
>> Hi all,
>> we are building an application which uses decimal numbers but something is not going as expected.
>>
>> Aubit4GL version is 1.2.38, binary installation on Ubuntu 12.04 32 bit.
>>
>> In detail, we tried to obtain numerical output with two decimal and comma separator with the following code:
>>
>>[..........]
>>
>> We made several attempt with:
>>
>> A4GL_ALLOWCOMMAINDECIMAL=Y (tried with or without)
>> A4GL_NUMERIC=,. (also tried . or , or ., or disable)
>> LANG=it_IT.UTF-8 (tried with or without)
>>
>> in $AUBITDIR/etc/aubitrc without any change in output, it seems these variables do not have any effect.
>>
>> Any help appreciated, thanks anyone
>>
>> Alessandro
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Aubit4gl-discuss mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>
------------------------------------------------------------------------------