pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/news/pan Add patch to avoid some unneeded UTF-8 strings.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/748332a63310
branches:  trunk
changeset: 387496:748332a63310
user:      rhialto <rhialto%pkgsrc.org@localhost>
date:      Sun Nov 18 14:31:56 2018 +0000

description:
Add patch to avoid some unneeded UTF-8 strings.

diffstat:

 news/pan/distinfo                            |   3 ++-
 news/pan/patches/patch-pan-general-e-util.cc |  23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r 63b0ea16b771 -r 748332a63310 news/pan/distinfo
--- a/news/pan/distinfo Sun Nov 18 14:29:03 2018 +0000
+++ b/news/pan/distinfo Sun Nov 18 14:31:56 2018 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.31 2018/07/14 15:15:12 maya Exp $
+$NetBSD: distinfo,v 1.32 2018/11/18 14:31:56 rhialto Exp $
 
 SHA1 (pan-0.145.tar.bz2) = b8b6c57a3198e2f2db7443661fe11b523518ec9f
 RMD160 (pan-0.145.tar.bz2) = 4286659500e031219c7e972ff87f645f43d68ede
 SHA512 (pan-0.145.tar.bz2) = 3dc92d519158ddd480fc43250bf7a3ec67a877e58b0877c02b99f1dfd968bf18c9a20c3d8c4b6acab4132da89b6b91dd2992616ddf46c1c3f9aa0de8f8ee1949
 Size (pan-0.145.tar.bz2) = 2307162 bytes
+SHA1 (patch-pan-general-e-util.cc) = c252f074b139b100f3f879261b1ba894b5f3350c
 SHA1 (patch-pan_general_text-match.cc) = eaf15f3323f693d094892d3283437ad5ac3c9682
 SHA1 (patch-pan_general_text-match.h) = 6ac5a68a8b1cb472df517a8df53eee5a79e4c73c
diff -r 63b0ea16b771 -r 748332a63310 news/pan/patches/patch-pan-general-e-util.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/pan/patches/patch-pan-general-e-util.cc      Sun Nov 18 14:31:56 2018 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-pan-general-e-util.cc,v 1.1 2018/11/18 14:31:56 rhialto Exp $
+
+Replace UTF-8 colons by real ones, so it works in more locales.
+
+diff --git a/pan/general/e-util.cc b/pan/general/e-util.cc
+index af5ccd0..efb7932 100644
+--- pan/general/e-util.cc
++++ 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



Home | Main Index | Thread Index | Old Index