bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gawk locale setting


From: Stepan Kasal
Subject: Re: gawk locale setting
Date: Wed, 23 Apr 2003 15:57:15 +0200
User-agent: Mutt/1.2.5.1i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]