[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk mbstate_t problem on hppa2.0w-hp-hpux11.11
From: |
Stepan Kasal |
Subject: |
Re: gawk mbstate_t problem on hppa2.0w-hp-hpux11.11 |
Date: |
Mon, 15 Dec 2003 17:46:17 +0100 |
User-agent: |
Mutt/1.4.1i |
Hello Michael,
I think we agree in practical applications, see the other mail.
This mail discusses an unimportant theoretical detail:
On Tue, Dec 09, 2003 at 12:23:59PM -0500, Michael Elizabeth Chastain wrote:
> I am looking at the Single Unix Specification version 3.
> mbrtowc is mandatory, but mbstate_t is an XSI extension, and is
> available only if _XOPEN_SOURCE is defined.
>
> http://www.opengroup.org/onlinepubs/007904975/basedefs/wchar.h.html
My interpretation of this page is that mbstate_t is mandatory.
The ``[Option Start]'' tag is in the middle of paragraph, suggesting
that only the second sentence, speaking about ``more than 2 levels'' is
an XSI extension.
But even if my interpretation were wrong, and mbstate_t were optional,
I'd still call the situation ``broken'' though it would be conforming
to the broken standard.
> And the HP documentation is here:
> http://www.docs.hp.com/hpux/onlinedocs/5187-3605/00/00/1-con.html
I wasn't able to get this page. Perhaps you should try to discuss the
issue with them, if you are willing to help them.
> readline already implements proposal (B), but it has a glitch in the
> implementation.
It must be tricky and I wouldn't wish to struggle with this.
Stepan