From 4247984df3c7a34875a1f21bfde6bb954485a84a Mon Sep 17 00:00:00 2001 From: Stephen Swaney Date: Thu, 13 Mar 2008 03:32:23 +0000 Subject: [PATCH] French text was breaking python interpreters. Add character encoding to file like this: # -*- coding: latin-1 -*- Thanks to eago for the bug report. --- release/scripts/bpymodules/paths_ai2obj.py | 10 +++++++--- release/scripts/bpymodules/paths_gimp2obj.py | 4 ++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/release/scripts/bpymodules/paths_ai2obj.py b/release/scripts/bpymodules/paths_ai2obj.py index dcf56853184..6eb5023a8d4 100644 --- a/release/scripts/bpymodules/paths_ai2obj.py +++ b/release/scripts/bpymodules/paths_ai2obj.py @@ -1,3 +1,4 @@ +# -*- coding: latin-1 -*- """ paths_ai2obj.py # --------------------------------------------------------------- @@ -42,10 +43,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Communiquer les problemes et erreurs sur: # http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender #---------------------------------------------- + +#Changelog #---------------------------------------------- -#Chagelog -#---------------------------------------------- -# 0.1.1 : 2004/08/03, bug in boudingbox reading when Value are negative +# 0.1.1 : 2004/08/03, bug in boundingbox reading when Value are negative # 0.1.2 : 2005/06/12, gmove tranformation properties # 0.1.3 : 2005/06/25, added a __name__ test to use the script alone # 0.1.4 : 2005/06/25, closepath improvements @@ -57,6 +58,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # 0.1.8 : 2006/07/03, two more closepath improvements # 0.1.9 : 2007/05/06, modif on the method that gets the last object on the list data +# 2008/03/12, Added character encoding line so french text +# does not break python interpreters. + """ SHARP_IMPORT=0 SCALE=1 diff --git a/release/scripts/bpymodules/paths_gimp2obj.py b/release/scripts/bpymodules/paths_gimp2obj.py index 8b31c5d7294..c2ce9718c71 100644 --- a/release/scripts/bpymodules/paths_gimp2obj.py +++ b/release/scripts/bpymodules/paths_gimp2obj.py @@ -1,3 +1,4 @@ +# -*- coding: latin-1 -*- """ #---------------------------------------------- # (c) jm soler juillet 2004, @@ -43,6 +44,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_import_gimp.htm # Communiquer les problemes et erreurs sur: # http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender +# Modification History: +# 2008-03-12 Added character encoding line so french text does not break +# python interpreters. #--------------------------------------------- SHARP_IMPORT=0