Re: mbstate_t oddity on HP-UX 11.00

2001-12-14 Thread Albert Chin-A-Young

On Fri, Dec 14, 2001 at 12:31:08PM -0500, Glenn Maynard wrote:
 On Fri, Dec 14, 2001 at 07:23:31AM -0600, Albert Chin-A-Young wrote:
  So, do we need a C and C++ check for mbstate_t?
  
  Note that mbstate_t is usred in lib/fnmatch.c and lib/regex.c but in
  2.4.4, there was no autoconf check for it. Any reason the autoconf
  check was introduced?
 
 It's used conditionally based on this check (and some others), though
 fnmatch.c has it disabled for some reason.  (I don't think it should; we
 very well might have MBCS filenames locally.  I occasionally do, with
 UTF-8, but I'm not using the replacement versions of these functions so
 it doesn't affect me.)  We use MBCS functions directly now, so we need to
 know if it's available.  (We assume the FTP server's terminal encoding is
 the same as the local terminal's; not a very good assumption, but it's the
 best we can do in a terminal interface.)

So do I make a separate C, C++ autoconf check for mbstate_t?

-- 
albert chin ([EMAIL PROTECTED])



Re: mbstate_t oddity on HP-UX 11.00

2001-12-14 Thread Glenn Maynard

On Fri, Dec 14, 2001 at 03:06:04PM -0500, Glenn Maynard wrote:
 Is there any way to get these particular headers to define mbstate_t
 properly in C++?  It'd be nice to avoid the extra complication of
 needing to test for mbstate_t differently in C and C++.

Er, I guess that could be hidden inside config.h--but it'd be nice for
it to *work* in both C and C++, if possible.

-- 
Glenn Maynard