Skip to content

Instantly share code, notes, and snippets.

@mgieseki
Created February 3, 2017 16:09
Show Gist options
  • Save mgieseki/864030f76f13f397cff1ace6d8de43e5 to your computer and use it in GitHub Desktop.
Save mgieseki/864030f76f13f397cff1ace6d8de43e5 to your computer and use it in GitHub Desktop.
fix locale issue in ff-woff
diff -r 5b28b8d3980f configure.ac
--- a/configure.ac Wed Jan 25 19:35:26 2017 +0100
+++ b/configure.ac Fri Feb 03 16:59:08 2017 +0100
@@ -26,7 +26,7 @@
AC_LANG(C)
AC_CHECK_FUNCS([ftime gettimeofday])
-AC_CHECK_HEADERS([sys/time.h sys/timeb.h])
+AC_CHECK_HEADERS([sys/time.h sys/timeb.h xlocale.h])
AC_HEADER_TIOCGWINSZ
AC_CHECK_HEADER([kpathsea/kpathsea.h], ,
diff -r 5b28b8d3980f libs/ff-woff/fontforge/splinefont.h
--- a/libs/ff-woff/fontforge/splinefont.h Wed Jan 25 19:35:26 2017 +0100
+++ b/libs/ff-woff/fontforge/splinefont.h Fri Feb 03 16:59:08 2017 +0100
@@ -27,6 +27,9 @@
#ifndef _SPLINEFONT_H
#define _SPLINEFONT_H
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <basics.h>
#include <dlist.h>
#include "configure-fontforge.h"
@@ -35,7 +38,10 @@
#else
# include <gwwiconv.h>
#endif
-#include "locale.h"
+#include <locale.h>
+#ifdef HAVE_XLOCALE_H
+#include <xlocale.h>
+#endif
#include <gnetwork.h>
#ifdef FONTFORGE_CONFIG_USE_DOUBLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment