r14279 by jghali - #8573 : UnicodeDecodeError in scripter

scribus-commit scribus-commit at lists.scribus.net
Wed Nov 11 15:15:21 CET 2009


Revision: 14279
Author: jghali
Date: 2009-11-11T07:11:51.288203Z
Commit message: #8573 : UnicodeDecodeError in scripter

Changeset: 
M  /branches/Version135/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp

Diffs:
Index: scribus/plugins/scriptplugin/cmdpage.cpp
===================================================================
--- scribus/plugins/scriptplugin/cmdpage.cpp	(revision 14278)
+++ scribus/plugins/scriptplugin/cmdpage.cpp	(revision 14279)
@@ -241,7 +241,7 @@
 		if (pageNr == ScCore->primaryMainWindow()->doc->Items->at(i)->OwnPage)
 		{
 			row = Py_BuildValue((char*)"(sii)",
-			                    ScCore->primaryMainWindow()->doc->Items->at(i)->itemName().toAscii().constData(),
+			                    ScCore->primaryMainWindow()->doc->Items->at(i)->itemName().toUtf8().constData(),
 			                    ScCore->primaryMainWindow()->doc->Items->at(i)->itemType(),
 			                    ScCore->primaryMainWindow()->doc->Items->at(i)->ItemNr
 			                   );




More information about the scribus-commit mailing list