[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk locale setting
From: |
Robert Hamersky |
Subject: |
Re: gawk locale setting |
Date: |
Wed, 23 Apr 2003 16:12:48 +0200 (CEST) |
Hi
THanks for you answer. I have posted this problem in comp.lang.awk too and
Aharon Robbins wrote me a fix, and posted a patch for gawk 3.1.3 to solve
this in general...
http://groups.google.at/groups?q=gawk+LC_NUMERIC&hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=newscache%24wa9adh%249xb%241%40lnews.actcom.co.il&rnum=1
Is this OK for you?
Have a nice day
;-) robert
> Hello,
>
> On Wed, Apr 09, 2003 at 08:58:29PM +0200, robert wrote:
>> I am using Mandrake Linux 9.1 and gawk 3.1.1. I wondering if even i
>> have LC_NUMERIC set to "de" the output of the decimal_point is "."
>> The locale
>
> unfortunately not. Current gawk (version 3.1.2) doesn't use LC_NUMERIC.
> (To be exact, the gawk C source code enforces LC_NUMERIC=C.)
>
> So the print/printf commands within awk source are not affected by the
> value of LC_NUMERIC.
>
> It is planned that gawk programs could make use of LC_NUMERIC value,
> either taken from environment or specified explicitely, but in both
> cases the program would have to switch this on, it won't be on by
> default because of backwadr compatibility.
>
> The plan is that
> PROCINFO["LC_NUMERIC"] = "de"
> would choose ``de'' explicitely and
> PROCINFO["LC_NUMERIC"] = ""
> would import the value from current environment.
>
> But no final decisin has been made yet.
> Any comments are welcome.
>
> Have a nice day,
> Stepan Kasal