summaryrefslogtreecommitdiff
path: root/scripts/xdg-email.in
diff options
context:
space:
mode:
authorRex Dieter <rdieter@fedoraproject.org>2011-04-14 10:14:52 -0500
committerRex Dieter <rdieter@fedoraproject.org>2011-04-14 10:14:52 -0500
commitb2f6a65cf49bb9e31510ff5136146ed4d6b21784 (patch)
tree6f4640b03f3fc2d9b5d3eb71589ad23641b05558 /scripts/xdg-email.in
parente9956d1490b6a3231fb9028e0e5f3d50f31b76b4 (diff)
xdg-email outputs errors with localized KDE4 (BR32924)
xdg-email runs kmailservice with incorrect locale (BR33106)
Diffstat (limited to 'scripts/xdg-email.in')
-rw-r--r--scripts/xdg-email.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in
index 8ed8bbe..bbfb604 100644
--- a/scripts/xdg-email.in
+++ b/scripts/xdg-email.in
@@ -106,12 +106,12 @@ open_kde()
DEBUG 1 "Running kmailservice \"$1\""
if [ x"$KDE_SESSION_VERSION" = x"4" ]; then
KMAILSERVICE=`kde4-config --locate kmailservice --path exe 2>/dev/null`
+ $KMAILSERVICE "$1"
else
KMAILSERVICE=`which kmailservice 2>/dev/null`
+ # KDE3 uses locale's encoding when decoding the URI, so set it to UTF-8
+ LC_ALL=C.UTF-8 $KMAILSERVICE "$1"
fi
- # KDE uses locale's encoding when decoding the URI, so set it to UTF-8
- LC_ALL=C.UTF-8 $KMAILSERVICE "$1"
- kfmclient_fix_exit_code $?
if [ $? -eq 0 ]; then
exit_success