]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix error when reading file on a non-utf-8 locale
authorvsr <vsr@opencascade.com>
Tue, 24 May 2022 08:45:24 +0000 (11:45 +0300)
committervsr <vsr@opencascade.com>
Tue, 24 May 2022 08:45:45 +0000 (11:45 +0300)
src/PythonAddons/macros/pipeNetwork/feature.py

index a22632084c9882f73ff1a00cda9974d7b37b652a..e857f7e483141984fecd00bbfcccb7ddf0d875cb 100755 (executable)
@@ -696,7 +696,7 @@ Il est nommé conformément au noeud d'application. Cela n'a qu'un intérêt gra
             while True:
 
                 # B.1. Lecture du fichier
-                with open(filepath) as afile:
+                with open(filepath, encoding='utf-8') as afile:
                     summary = 0
                     method = self.parligne
                     for line in afile: