[gnome-software] trivial: Remove another UTF-8 suffix on a locale string
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Remove another UTF-8 suffix on a locale string
- Date: Wed, 17 Feb 2016 09:49:23 +0000 (UTC)
commit 7a838ffbe817755726c10b8c03f266091caeca61
Author: Richard Hughes <richard hughsie com>
Date: Tue Feb 16 16:46:41 2016 +0000
trivial: Remove another UTF-8 suffix on a locale string
src/gs-plugin-loader.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index d544ecf..eec6903 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -3449,11 +3449,14 @@ gs_plugin_loader_init (GsPluginLoader *plugin_loader)
soup_session_remove_feature_by_type (priv->soup_session,
SOUP_TYPE_CONTENT_DECODER);
- /* get the locale without the UTF-8 suffix */
+ /* get the locale without the various UTF-8 suffixes */
priv->locale = g_strdup (setlocale (LC_MESSAGES, NULL));
match = g_strstr_len (priv->locale, -1, ".UTF-8");
if (match != NULL)
*match = '\0';
+ match = g_strstr_len (priv->locale, -1, ".utf8");
+ if (match != NULL)
+ *match = '\0';
g_mutex_init (&priv->pending_apps_mutex);
g_mutex_init (&priv->app_cache_mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]