gnome-settings-daemon/0002-main-Fix-incorrect-quote-removal.patch
Kalev Lember c1d2c085d8 Backport more upstream fixes for the localeexec helper
The last backport caused a regression by failing to filter out the
single quote.

https://bugzilla.redhat.com/show_bug.cgi?id=974778
2013-06-16 18:32:42 +02:00

29 lines
929 B
Diff

From b0ca46dc389ebe9201f8c9bf6c046602900d22b8 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Wed, 12 Jun 2013 16:51:57 +0200
Subject: [PATCH 2/3] main: Fix incorrect quote removal
We were trying to remove a comma instead of a single-quote.
https://bugzilla.gnome.org/show_bug.cgi?id=701322
---
gnome-settings-daemon/gnome-settings-daemon-localeexec.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnome-settings-daemon/gnome-settings-daemon-localeexec.in b/gnome-settings-daemon/gnome-settings-daemon-localeexec.in
index 1aca843..d82b8bf 100755
--- a/gnome-settings-daemon/gnome-settings-daemon-localeexec.in
+++ b/gnome-settings-daemon/gnome-settings-daemon-localeexec.in
@@ -1,7 +1,7 @@
#! /bin/bash
SETTING=$(gsettings get org.gnome.system.locale region)
-REGION=${SETTING//\,/}
+REGION=${SETTING//\'/}
if [ -n "$REGION" ]; then
export LC_TIME=$REGION
--
1.8.2.1