From eed1a0c75e980de3bd554b43680b2f01a1b03511 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Sat, 25 Nov 2006 14:34:53 +0000
Subject: [PATCH] show time correctly [it was failing at least in Windows]. see
 #2514

---
 src/conversation_textview.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conversation_textview.py b/src/conversation_textview.py
index 15db014ee4..06c4c53b3e 100644
--- a/src/conversation_textview.py
+++ b/src/conversation_textview.py
@@ -758,7 +758,7 @@ class ConversationTextview:
 			format += day_str + ' '
 		format += '%X'
 		tim_format = time.strftime(format, tim)
-		if locale.getpreferredencoding() == 'UTF-8':
+		if locale.getpreferredencoding() != 'KOI8-R':
 			# if tim_format comes as unicode because of day_str.
 			# we convert it to the encoding that we want (and that is utf-8)
 			tim_format = helpers.ensure_utf8_string(tim_format)
-- 
GitLab