From c93664303b811f5e664dfe85dd6cb7de99a5b557 Mon Sep 17 00:00:00 2001
From: pierre <pierre.ratinaud@univ-tlse2.fr>
Date: Fri, 2 Feb 2024 00:00:11 +0100
Subject: [PATCH] windows

---
 search_tools.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/search_tools.py b/search_tools.py
index 5dd03a0..bddaa5f 100644
--- a/search_tools.py
+++ b/search_tools.py
@@ -38,7 +38,7 @@ class SearchFrame(wx.Frame):
         dlg = wx.ProgressDialog("Traitements", "lecture du tableau...", maximum = 4, parent=self, style = wx.PD_APP_MODAL|wx.PD_AUTO_HIDE|wx.PD_ELAPSED_TIME)
         dlg.Center()
         dlg.Update(1)
-        with codecs.open(corpus.dictpathout['chisqtable'], 'r', parent.SysEncoding) as f :
+        with open(corpus.dictpathout['chisqtable'], 'r', encoding='utf8') as f :
             chisqtable = [line.replace('\n','').replace('"','').replace(',','.').split(';') for line in f]
         first = chisqtable[0]
         first.pop(0)
@@ -49,9 +49,9 @@ class SearchFrame(wx.Frame):
         #self.text_ctrl_1 = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE)
         #nbactives = len(self.corpus.actives)
         dlg.Update(3)
-        with open(corpus.dictpathout['ContEtOut'], 'r') as f :
+        with open(corpus.dictpathout['ContEtOut'], 'r', encoding='utf8') as f :
             nbetoiles = len(f.readlines())
-        with open(corpus.dictpathout['Contout'], 'r') as f :
+        with open(corpus.dictpathout['Contout'], 'r', encoding='utf8') as f :
             nbactives = len(f.readlines())
         dlg.Update(4, "Ouverture...")
         self.liste = SearchList(self, parent, self.dchisqtable, first, nbactives, nbetoiles) 
-- 
2.7.4