-
Notifications
You must be signed in to change notification settings - Fork 4
/
vips-8.1.x.patch
32 lines (30 loc) · 1.22 KB
/
vips-8.1.x.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
localization patch
introspection workaround
--- libvips/iofuncs/init.c Fri May 01 22:27:36 2015
+++ libvips/iofuncs/init.c Wed Jul 01 07:37:56 2015
@@ -312,7 +312,15 @@
vips_snprintf( name, 256,
"%s" G_DIR_SEPARATOR_S "share" G_DIR_SEPARATOR_S "locale",
prefix );
+#ifdef G_OS_WIN32
+ /* vips_guess* might not reliable and no libdir usage at the moment */
+ extern gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain( GETTEXT_PACKAGE, name );
+#endif
bind_textdomain_codeset( GETTEXT_PACKAGE, "UTF-8" );
/* Default info setting from env.
--- libvips/Makefile.in Tue May 05 19:36:38 2015
+++ libvips/Makefile.in Mon Aug 17 21:32:33 2015
@@ -605,7 +605,7 @@
# we have an unusual markup with optional args and we don't want to see all
# those warnings
@HAVE_INTROSPECTION_TRUE@Vips_8_0_gir_SCANNERFLAGS = \
-@HAVE_INTROSPECTION_TRUE@ --program=./introspect \
+@HAVE_INTROSPECTION_TRUE@ --program=./introspect$(EXEEXT) \
@HAVE_INTROSPECTION_TRUE@ --identifier-prefix=Vips \
@HAVE_INTROSPECTION_TRUE@ --identifier-prefix=vips \
@HAVE_INTROSPECTION_TRUE@ --symbol-prefix=vips