[evolution] Fix a copy&paste error with LC_TIME in emcu_change_locale()



commit 85d47931eb7add1142ee2cc5fee794d27f9fc95e
Author: Milan Crha <mcrha redhat com>
Date:   Mon Apr 1 10:09:46 2019 +0200

    Fix a copy&paste error with LC_TIME in emcu_change_locale()
    
    When changing also LC_TIME the part to be changed is LC_TIME, not LC_ALL.

 src/mail/em-composer-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/mail/em-composer-utils.c b/src/mail/em-composer-utils.c
index 16fc6289e0..3bcf9ad431 100644
--- a/src/mail/em-composer-utils.c
+++ b/src/mail/em-composer-utils.c
@@ -2072,7 +2072,7 @@ emcu_change_locale (const gchar *lc_messages,
        if (lc_time) {
                #if defined(LC_TIME)
                previous = g_strdup (setlocale (LC_TIME, NULL));
-               success = setlocale (LC_ALL, lc_time) != NULL;
+               success = setlocale (LC_TIME, lc_time) != NULL;
                #elif defined(LC_MESSAGES)
                previous = g_strdup (setlocale (LC_ALL, NULL));
                success = setlocale (LC_ALL, lc_time) != NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]