Do not set LC_MEASUREMENT in the environment, we do not support that

locale definition.
This commit is contained in:
ajacoutot 2011-09-30 08:48:00 +00:00
parent b7f1764c05
commit 01cc09404c
2 changed files with 18 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.57 2011/09/28 09:47:48 jasper Exp $
# $OpenBSD: Makefile,v 1.58 2011/09/30 08:48:00 ajacoutot Exp $
SHARED_ONLY= Yes
@ -6,6 +6,7 @@ COMMENT= GNOME settings daemon
GNOME_PROJECT= gnome-settings-daemon
GNOME_VERSION= 3.2.0
REVISION= 0
# GPLv3
PERMIT_PACKAGE_CDROM= Yes

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-gnome-settings-daemon_main_c,v 1.1 2011/09/30 08:48:00 ajacoutot Exp $
OpenBSD does not have LC_MEASUREMENT.
--- gnome-settings-daemon/main.c.orig Fri Sep 30 10:34:23 2011
+++ gnome-settings-daemon/main.c Fri Sep 30 10:34:43 2011
@@ -212,7 +212,9 @@ set_locale (GDBusProxy *proxy)
set_session_env (proxy, "LC_TIME", region);
set_session_env (proxy, "LC_NUMERIC", region);
set_session_env (proxy, "LC_MONETARY", region);
+#ifdef LC_MEASUREMENT
set_session_env (proxy, "LC_MEASUREMENT", region);
+#endif
}
g_object_unref (locale_settings);