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

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

Re: gawk: length return incorrect value when MB_CUR_MAX > 1


From: Hirofumi Saito
Subject: Re: gawk: length return incorrect value when MB_CUR_MAX > 1
Date: Thu, 01 Dec 2005 23:51:14 +0900
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.4 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)

Paul Eggert wrote.
> Hirofumi Saito <address@hidden> writes:

> > And then, I tried to use gawk 3.1.5 which I build with sarge.
> >
> >  $ LANG=ja_JP.utf8 gawk 'BEGIN {print length("abc\0def")}'
> >  7
> >  $ LANG=ja_JP.eucJP gawk 'BEGIN {print length("abc\0def")}'
> >  3

> Very strange.  I don't get this result with Debian sarge x86; instead,
> I get 3 in both cases.  And that is what I would expect to get, given
> the source code.  Perhaps your locales weren't all built?  (Also, I
> set LC_ALL rather than LANG; that's safer.)

I confirm my settings, and "dpkg-reconfigure locales" then I get the
same results of Koichi and Paul.
I don't use ja_JP.UTF-8, so I didn't just set up the other locales.

Thanks,

--
----+----1----+----2----+----3----+----4----+----5----+----6----+----7
Hirofumi Saito
Mail: address@hidden




reply via email to

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