Hi Tim,

> reported by oss-fuzz and reproducible locally when building
> libunistring (latest master):
> 
> 
> gcc -DHAVE_CONFIG_H -DNO_XMALLOC -I. -I..  -I. -I. -I.. -I..
> -DIN_LIBUNISTRING -DDEPENDS_ON_LIBICONV=1   -g -Og -Wall -Wextra -c
> localcharset.c
> In file included from localcharset.c:59:0:
> ./langinfo.h:163:7: error: token "@" is not valid in preprocessor
> expressions
>  # if !@HAVE_LANGINFO_ALTMON@
>        ^

Oops. Thanks for the quick report! Fixed:


2018-01-26  Bruno Haible  <br...@clisp.org>

        langinfo: Fix last commit.
        Reported by Tim Rühsen <tim.rueh...@gmx.de>.
        * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.

diff --git a/modules/langinfo b/modules/langinfo
index 71bf407..6be975d 100644
--- a/modules/langinfo
+++ b/modules/langinfo
@@ -31,6 +31,7 @@ langinfo.h: langinfo.in.h $(top_builddir)/config.status 
$(CXXDEFS_H) $(WARN_ON_U
              -e 's/@''GNULIB_NL_LANGINFO''@/$(GNULIB_NL_LANGINFO)/g' \
              -e 's|@''HAVE_LANGINFO_CODESET''@|$(HAVE_LANGINFO_CODESET)|g' \
              -e 
's|@''HAVE_LANGINFO_T_FMT_AMPM''@|$(HAVE_LANGINFO_T_FMT_AMPM)|g' \
+             -e 's|@''HAVE_LANGINFO_ALTMON''@|$(HAVE_LANGINFO_ALTMON)|g' \
              -e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \
              -e 's|@''HAVE_LANGINFO_YESEXPR''@|$(HAVE_LANGINFO_YESEXPR)|g' \
              -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \


Reply via email to