File capisuite-0.4.5-python-v2.5.diff of Package capisuite

Index: capisuite-0.4.5/src/application/pythonscript.cpp
===================================================================
--- capisuite-0.4.5.orig/src/application/pythonscript.cpp
+++ capisuite-0.4.5/src/application/pythonscript.cpp
@@ -99,14 +99,14 @@ PythonScript::run() throw (ApplicationEr
 			if ( !(py_traceback=cStringIO->cgetvalue(catch_stderr)) )
 				throw ApplicationError("unable to get traceback","PythonScript::run()");
 			
-			int length;
+			Py_ssize_t length;
 			char *traceback;
 			if (PyString_AsStringAndSize(py_traceback, &traceback, &length))
 				throw ApplicationError("unable to convert traceback to char*","PythonScript::run()");
 
                         error << prefix() << "A python error occured. See traceback below." << endl;
 			error << prefix(false) << "Python traceback: ";
-			for (int i=0;i<length-1;i++) {
+			for (Py_ssize_t i=0;i<length-1;i++) {
 				error << traceback[i];
 				if (traceback[i]=='\n')
 					error << prefix(false) << "Traceback: ";
Index: capisuite-0.4.5/scripts/cs_helpers.pyin
===================================================================
--- capisuite-0.4.5.orig/scripts/cs_helpers.pyin
+++ capisuite-0.4.5/scripts/cs_helpers.pyin
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 #         cs_helpers.py - some helper functions for CapiSuite scripts
 #         -----------------------------------------------------------
 #    copyright            : (C) 2002 by Gernot Hillier
Index: capisuite-0.4.5/scripts/idle.py
===================================================================
--- capisuite-0.4.5.orig/scripts/idle.py
+++ capisuite-0.4.5/scripts/idle.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 #                  idle.py - default script for capisuite
 #              ---------------------------------------------
 #    copyright            : (C) 2002 by Gernot Hillier
Index: capisuite-0.4.5/scripts/incoming.py
===================================================================
--- capisuite-0.4.5.orig/scripts/incoming.py
+++ capisuite-0.4.5/scripts/incoming.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 #              incoming.py - standard incoming script for capisuite
 #              ----------------------------------------------------
 #    copyright            : (C) 2002 by Gernot Hillier
openSUSE Build Service is sponsored by