From 3ee18c20c87a6c67648a2dcbd86e73a34d943df9 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 26 Nov 2007 12:03:09 +0000
Subject: [PATCH] handle unicode chars in emoticons. fixes #3227

---
 src/gajim.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gajim.py b/src/gajim.py
index b2469a310f..f124a872ff 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -2329,7 +2329,8 @@ class Interface:
 		# because emoticons match later (in the string) they need to be after
 		# basic matches that may occur earlier
 		emot_and_basic_pattern = basic_pattern + emoticons_pattern
-		self.emot_and_basic_re = re.compile(emot_and_basic_pattern, re.IGNORECASE)
+		self.emot_and_basic_re = re.compile(emot_and_basic_pattern,
+			re.IGNORECASE + re.UNICODE)
 
 		# at least one character in 3 parts (before @, after @, after .)
 		self.sth_at_sth_dot_sth_re = re.compile(r'\S+@\S+\.\S*[^\s)?]')
-- 
GitLab