From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: Latest CVS + ZLE_UNICODE_SUPPORT on RHEL3
Date: Tue, 22 Feb 2005 14:36:36 +0100 [thread overview]
Message-ID: <11725.1109079396@trentino.logica.co.uk> (raw)
In-Reply-To: <200502221048.j1MAmcQa006265@news01.csr.com>
Peter wrote:
> An mbstate_t object a can be
> initialized to the initial state by zeroing it, for example using
>
> memset(&a, 0, sizeof(a));
>
> but the standard gives no indication this is portable (though clearly
I think you can safely take it to be portable. I've seen it many times
before (though the last argument is usually written sizeof(mbstate_t))
and just using grep now shows that quite a good few open source programs
use it.
> Alternatively, since we're not going to be using this in multiple
> threads, we could use a NULL pointer and rely on the internal state.
Surely you might use it in another function call while in the middle of
using it. It's probably safest not to rely on the single internal state.
Oliver
next prev parent reply other threads:[~2005-02-22 13:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1D3Ddp-000JDB-00.arvidjaar-mail-ru@f30.mail.ru>
2005-02-21 13:37 ` Borzenkov Andrey
2005-02-21 14:29 ` Peter Stephenson
2005-02-21 19:13 ` Andrey Borzenkov
2005-02-22 10:12 ` Peter Stephenson
2005-02-22 10:48 ` Peter Stephenson
2005-02-22 13:36 ` Oliver Kiddle [this message]
2005-02-18 22:01 Bart Schaefer
2005-02-21 10:56 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11725.1109079396@trentino.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).