[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a bug in gawk-3.1.4
From: |
Masahiko Furuichi |
Subject: |
Re: a bug in gawk-3.1.4 |
Date: |
Sun, 29 May 2005 22:45:25 +0900 |
Hello Stepan,
Thank you for the answer.
You are right. This is a locale specific problem.
When I specify LC_ALL=C, it worked.
fs12{sbsoft}: ../gawk-3.1.4/gawk '/^[^!]/{printf("%s\n", $1)}' sample
fs12{sbsoft}: locale
LANG=ja
LC_CTYPE="ja"
LC_NUMERIC="ja"
LC_TIME="ja"
LC_COLLATE="ja"
LC_MONETARY="ja"
LC_MESSAGES="ja"
LC_ALL=
fs12{sbsoft}: LC_ALL=C ../gawk-3.1.4/gawk '/^[^!]/{printf("%s\n", $1)}' sample
a
c
fs12{sbsoft}:
Best Regards,
-Masa
On Fri, 27 May 2005 16:23:22 +0200
Stepan Kasal <address@hidden> wrote:
> Hello,
>
> On Fri, May 27, 2005 at 08:20:45PM +0900, Masahiko Furuichi wrote:
> > I have a problem with gawk-3.1.4. gawk-3.1.3 seems OK.
> > Both gawk is compiled by gcc-3.3.4 + Solaris 8(SPARC).
> >
> > Here is the sample.
> >
> > fs12{sbsoft}: cat sample
> > ! 1
> > a b
> > ! 2
> > c d
> > fs12{sbsoft}: ../gawk-3.1.3/gawk '/^[^!]/{printf("%s\n", $1)}' sample
> > a
> > c
> > fs12{sbsoft}: ../gawk-3.1.4/gawk '/^[^!]/{printf("%s\n", $1)}' sample
> > fs12{sbsoft}:
>
> this might be a locale specific problem. When you experience this,
> what is the output of the command "locale"?
>
> And if you try
> LC_ALL=C ../gawk-3.1.4/gawk '/^[^!]/{printf("%s\n", $1)}' sample
>
> does it work?
>
> Have a nice day,
> Stepan Kasal
--
Masahiko Furuichi <address@hidden>
__________________________________
Do You Yahoo!?
Upgrade Your Life
http://bb.yahoo.co.jp/