new module 'mbrtowc'

2008-12-18 Thread Bruno Haible
The 'mbrtowc' module emulation, based on the system's mbtowc(), is more interesting: - sizeof(mbstate_t) has to be >= 4 for UTF-8, but on IRIX 6.5 mbstate_t is defined to 'char'. (Thanks to Paul for idea to verify this assumption :-)). So we have to override this type. - mbtowc() does

new module 'wctob'

2008-12-18 Thread Bruno Haible
The next module for ISO C 99 multibyte functions: wctob. 2008-12-18 Bruno Haible New module 'wctob'. * lib/wchar.in.h (wctob): New declaration. * lib/wctob.c: New file. * m4/wctob.m4: New file. * modules/wctob: New file. * m4/wchar.m4 (gl_WCHAR_H

Re: new module 'mbsinit'

2008-12-18 Thread Bruno Haible
This fixes a nit in the two new modules: They need to activate the replacement. Noticed on IRIX 6.5. 2008-12-18 Bruno Haible * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H. * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise. --- m4/mbsinit.m4.orig 2008-12-19 02:55:18.

Re: flock fails on sparc-sun-solaris2.6

2008-12-18 Thread Simon Josefsson
"Tom G. Christensen" writes: >> Tom, please test tomorrow's snapshot. Was this the only problem on >> solaris? >> > Summary says: > 42 of 438 tests failed > (17 tests were not run) > > Many of the errors are in uniconv but they may be caused by a faulty > setup on my part. I will investigate to

Re: flock fails on sparc-sun-solaris2.6

2008-12-18 Thread Tom G. Christensen
On Thu, Dec 18, 2008 at 07:31:04PM +0100, Simon Josefsson wrote: > Eric Blake writes: > > > Simon Josefsson josefsson.org> writes: > > > >> > flock.c:186: warning: implicit declaration of function 'memset' > >> > flock.c:186: warning: incompatible implicit declaration of built-in > > function '

Re: flock fails on sparc-sun-solaris2.6

2008-12-18 Thread Simon Josefsson
Eric Blake writes: > Simon Josefsson josefsson.org> writes: > >> > flock.c:186: warning: implicit declaration of function 'memset' >> > flock.c:186: warning: incompatible implicit declaration of built-in > function 'memset' >> >> This one also seems simple. Patch below. Will push unless ther

Re: flock fails on sparc-sun-solaris2.6

2008-12-18 Thread Eric Blake
Simon Josefsson josefsson.org> writes: > > flock.c:186: warning: implicit declaration of function 'memset' > > flock.c:186: warning: incompatible implicit declaration of built-in function 'memset' > > This one also seems simple. Patch below. Will push unless there are > objections. Push both

Re: flock fails on sparc-sun-solaris2.6

2008-12-18 Thread Simon Josefsson
"Tom G. Christensen" writes: > depbase=`echo flock.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" > -DNO_XMALLOC -DEXEEXT=\"\" -I. -I.. -I../intl -D_REENTRANT -g -O2 -MT > flock.o -MD -MP -MF $depbase.Tpo -c -o flock.o flock.c &&\

Re: flock fails on sparc-sun-solaris2.6

2008-12-18 Thread Simon Josefsson
"Tom G. Christensen" writes: > Hello, > > Using Simons daily-build script I got this failure: > depbase=`echo flock.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" > -DNO_XMALLOC -DEXEEXT=\"\" -I. -I.. -I../intl -D_REENTRANT -g -O2 -

Re: flock fails on sparc-sun-solaris2.6

2008-12-18 Thread Simon Josefsson
"Tom G. Christensen" writes: >> flock.c:215:2: error: #error "This platform lacks flock function, and Gnulib >> doesn't provide a replacement. This is a bug in Gnulib." ... > Is there no interest in fixing these issues? > The flock module also fails to build on Solaris 8 due to this bug. FWIW,

Re: flock fails on sparc-sun-solaris2.6

2008-12-18 Thread Tom G. Christensen
On Tue, Dec 09, 2008 at 10:27:39PM +0100, Tom G. Christensen wrote: > Hello, > > Using Simons daily-build script I got this failure: > depbase=`echo flock.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" > -DNO_XMALLOC -DEXEEXT=\"\" -I.

Re: rename gl_FUNC_MBRTOWC

2008-12-18 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 12/18/2008 3:44 AM: >> m4_version_prereq([2.60],, [ >> >> It works at least back to Autoconf 2.59. > > Thanks for the hint. But m4_version_prereq is undocumented (as already > mentioned > in [1]). Not for long. I'm co

new file locale-ja.m4

2008-12-18 Thread Bruno Haible
For the mbrtowc unit tests, I need the determination of an EUC-JP locale. I'm moving this file from gettext to gnulib. 2008-12-18 Bruno Haible * m4/locale-ja.m4: New file, from GNU gettext. === m4/locale-ja.m4 === # locale-ja.m4

Re: rename gl_FUNC_MBRTOWC

2008-12-18 Thread Bruno Haible
Ralf Wildenhues wrote: > FWIW, there is a short-hand for this: > m4_version_prereq([2.60],, [ > AC_DEFUN([... > > ]) > ]) > > It works at least back to Autoconf 2.59. Thanks for the hint. But m4_version_prereq is undocumented (as already mentioned in [1]). Bruno [1] http://lists.gnu.or