[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regex functions and MBS_SUPPORT
From: |
Andreas Schwab |
Subject: |
Re: regex functions and MBS_SUPPORT |
Date: |
27 Dec 2001 17:47:07 +0100 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.1.30 |
Bob Ham <address@hidden> writes:
|> On Thu, 2001-12-20 at 06:06, Andreas Jaeger wrote:
|>
|> > > This implies to me that, if glibc is compiled with MBS_SUPPORT defined,
|> > > the regex functions only deal with wchar_t types and if it's not, they
|> > > only deal with char types. Is this correct?
|> >
|> > If MBS_SUPPORT is used - which is always set for glibc, you get both
|> > wchar_t and char types.
|>
|> In that case, I'm confused as to what the user provides to regcomp();
|> how does regcomp() deal with possibly being given a MBS and possibly
|> being given a straight char[] string? What does MB_CUR_MAX signify?
The string is interpreted according to the current locale. If MB_CUR_MAX
> 1 then the locale uses a multibyte encoding.
Andreas.
--
Andreas Schwab "And now for something
address@hidden completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5