changeset f5b10ff9e6ee in /home/hg/repos/gajim

author: lovetox <forenjun...@chelo.at>
branches: 
details:http://hg.gajim.org/gajim?cmd=changeset;node=f5b10ff9e6ee
description: Workaround for strftime bug on Windows

        see: http://bugs.python.org/issue8304

diffstat:

 src/conversation_textview.py |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r dd9be0a66aef -r f5b10ff9e6ee src/conversation_textview.py
--- a/src/conversation_textview.py      Thu Oct 13 00:40:02 2016 +0200
+++ b/src/conversation_textview.py      Thu Oct 13 01:43:26 2016 +0200
@@ -1410,7 +1410,12 @@
                 '%(nb_days)i days ago', diff_day, {'nb_days': diff_day},
                 {'nb_days': diff_day})
         if day_str:
-            format_ += i18n.direction_mark + day_str + direction_mark + ' '
+            # strftime Windows bug has problems with Unicode
+            # see: http://bugs.python.org/issue8304
+            if os.name != 'nt':
+                format_ += i18n.direction_mark + day_str + direction_mark + ' '
+            else:
+                format_ += day_str + ' '
         timestamp_str = gajim.config.get('time_stamp')
         timestamp_str = helpers.from_one_line(timestamp_str)
         format_ += timestamp_str
_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to