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: Aharon Robbins
Subject: Re: gawk: length return incorrect value when MB_CUR_MAX > 1
Date: Mon, 05 Dec 2005 22:22:38 +0200

> Date: Thu, 01 Dec 2005 16:12:22 +0900
> From: KIMURA Koichi <address@hidden>
> Subject: Re: gawk: length return incorrect value when MB_CUR_MAX > 1
> To: Aharon Robbins <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden
>
> Hi,
>
> On Thu, 01 Dec 2005 08:32:13 +0200
> Aharon Robbins <address@hidden> wrote:
>
> > Kimura,
> > 
> > It sounds like you prefer Paul's patch?  I guess a valid question is:
> > 
> > > I found mbrtowc() store L'\0' to &wc when detect '\0'.
> > 
> > Is this portable behavior? I.e., defined by the ISO C standard?
>
> I have checked JIS standard (Japanese translation of ISO standard) just
> before.
>
> It says mbrtowc() convert string include its terminator but its return
> value (converted string length) doesn't include it.
> .
> So, I think above behavior is portable one.

OK, great.

> P.S.
> Please call me 'Koichi,'  it's my first name.
> (KIMURA Koichi is order in Japanese)

Will do, thanks for the correction.

Arnold




reply via email to

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