Re: BSD m4 (was: more m4 underquotations)

2007-02-16 Thread Eric Blake
> > I DO know that in the > > current source code of BSD m4, "changequote(,)" behaves > > like "changequote" (ie. sets the quotes to ` and ') rather than > > the GNU behavior of disabling quotes. > > This sounds like a POSIX [1] violation of BSD m4. Nope. It was at my request that the Austin gro

[PATCH] Add !HAVE_MBRTOWC fallbacks for mbchar, mbiter and mbuiter

2007-02-16 Thread Miloslav Trmac
Hello, I'm adding multibyte character support to the info viewer using the mbiter and mbuiter modules. Those modules currently depend on mbrtowc () and friends. The mbs* functions in gnulib currently have two separate implementations of most algorithms, one for HAVE_MBRTOWC using mbchar, and one

Re: check for C99-compliant snprintf

2007-02-16 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > It's a bit of a pain that this will reject all cross-compiled snprintfs. > Is there some way you can test for this at compile-time? > > Does the nonstandard snprintf have exactly the same signature as the > C99 snprintf? If not, we should be able to catch

Re: check for C99-compliant snprintf

2007-02-16 Thread Paul Eggert
Ben Pfaff <[EMAIL PROTECTED]> writes: > We could of course test whether the system is Windows, using > #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ > or similar. Is that a better idea? Do you mean to have two Autoconf tests, one at compile-time (with the above code), and o

Re: fix inadequate Windows implementation of tmpfile

2007-02-16 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Paul, what's your opinion on this? Should gnulib includes overrides under > the same function name, even if they contradict the respective platform's > documentation? I think gnulib is for porting GNU applications, and if GNU applications assume glibc be

Re: check for C99-compliant snprintf

2007-02-16 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > Ben Pfaff <[EMAIL PROTECTED]> writes: > >> We could of course test whether the system is Windows, using >> #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ >> or similar. Is that a better idea? > > Do you mean to have two Autoconf tests

Re: [PATCH] Add !HAVE_MBRTOWC fallbacks for mbchar, mbiter and mbuiter

2007-02-16 Thread Bruno Haible
Eric Blake wrote: > > There are probably two uses of the mbchar, mbfile, mbiter, mbuiter modules: > > (a) Use them only for MB_CUR_MAX > 1, and use simpler datatypes (just > > 'char' and pointers) for MB_CUR_MAX = 1. > > (b) Use them always. > > ... there are things to be aware of. ...