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: KIMURA Koichi
Subject: Re: gawk: length return incorrect value when MB_CUR_MAX > 1
Date: Thu, 01 Dec 2005 16:12:22 +0900

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.

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

-- 
KIMURA Koichi





reply via email to

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