[pan] Replace totally unnecessary UTF-8 colons by real ones.



commit 637745c32a18e0ced15ca8023b4e4a7296d26264
Author: Olaf Seibert <rhialto falu nl>
Date:   Sat Jan 16 13:36:43 2021 +0100

    Replace totally unnecessary UTF-8 colons by real ones.
    
    Translating the string with `g_locale_from_utf8` can result in a NULL
    result which causes a crash.

 pan/general/e-util.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pan/general/e-util.cc b/pan/general/e-util.cc
index 62879eef..b21ca1b4 100644
--- a/pan/general/e-util.cc
+++ b/pan/general/e-util.cc
@@ -208,10 +208,10 @@ EvolutionDateMaker :: set_current_time (time_t now)
 EvolutionDateMaker :: EvolutionDateMaker (time_t now)
 {
   // build the locale strings
-  locale_recent = g_locale_from_utf8 (_("%l∶%M %p"), -1, NULL, NULL, NULL);
-  locale_today = g_locale_from_utf8 (_("Today %l∶%M %p"), -1, NULL, NULL, NULL);
-  locale_this_week = g_locale_from_utf8 (_("%a %l∶%M %p"), -1, NULL, NULL, NULL);
-  locale_this_year = g_locale_from_utf8 (_("%b %d %l∶%M %p"), -1, NULL, NULL, NULL);
+  locale_recent = g_locale_from_utf8 (_("%l:%M %p"), -1, NULL, NULL, NULL);
+  locale_today = g_locale_from_utf8 (_("Today %l:%M %p"), -1, NULL, NULL, NULL);
+  locale_this_week = g_locale_from_utf8 (_("%a %l:%M %p"), -1, NULL, NULL, NULL);
+  locale_this_year = g_locale_from_utf8 (_("%b %d %l:%M %p"), -1, NULL, NULL, NULL);
   locale_old = g_locale_from_utf8 (_("%b %d %Y"), -1, NULL, NULL, NULL);
 
   // set the current time


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