bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test-localename mingw failure?


From: Simon Josefsson
Subject: test-localename mingw failure?
Date: Tue, 29 Dec 2009 22:58:05 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

This

rm -rf m && ./gnulib-tool --create-testdir --dir m --with-tests localename; cd 
m && ./configure --host=i586-mingw32msvc --build=i686-pc-linux-gnu && make check

yields

i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I.  -I. -I. -I.. -I./.. -I../gllib 
-I./../gllib   -g -O2 -MT test-localename.o -MD -MP -MF 
.deps/test-localename.Tpo -c -o test-localename.o test-localename.c
test-localename.c:31: error: ‘LC_CTYPE_MASK’ undeclared here (not in a function)
test-localename.c:32: error: ‘LC_NUMERIC_MASK’ undeclared here (not in a 
function)
test-localename.c:33: error: ‘LC_TIME_MASK’ undeclared here (not in a function)
test-localename.c:34: error: ‘LC_COLLATE_MASK’ undeclared here (not in a 
function)
test-localename.c:35: error: ‘LC_MONETARY_MASK’ undeclared here (not in a 
function)
test-localename.c:36: error: ‘LC_MESSAGES_MASK’ undeclared here (not in a 
function)
make[3]: *** [test-localename.o] Error 1

POSIX
http://www.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html
says:

  The <locale.h> header shall contain at least the following macros
  representing bitmasks for use with the newlocale() function for each
  supported locale category: LC_COLLATE_MASK LC_CTYPE_MASK
  LC_MESSAGES_MASK LC_MONETARY_MASK LC_NUMERIC_MASK LC_TIME_MASK

I'm not sure how to parse this, are the macros optional if the locale
categories aren't supported?

In any case, is this something gnulib's locale.h should fix?

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]