PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 386 - NUL, SOH, and other characters in generated code
: NUL, SOH, and other characters in generated code
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: PC MS Windows XP/Vista/7
: P3 normal
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2010-09-24 00:15 EEST by Michael H
Modified: 2010-10-13 13:49 EEST (History)
8 users (show)

See Also:


Attachments
NUL/SOH chars in protectedenumclass_wrapper.cpp (21.96 KB, text/plain)
2010-09-24 00:15 EEST, Michael H
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael H 2010-09-24 00:15:43 EEST
Created attachment 100 [details]
NUL/SOH chars in protectedenumclass_wrapper.cpp

Shiboken inserts garbage single characters into generated source.

It's only happening on protected enum items (from var enumValueText set inside
the AVOID_PROTECTED_HACK ifdef'd blocks, lines 2895-2899 in cppgenerator.cpp)

Attached is an example of one of the shiboken's tests libsample bindings.
(shiboken\tests\samplebinding\sample\protectedenumclass_wrapper.cpp)

See line 535 and 541 in attached generated file.

(also happenening in PySide\QtGui\PySide\QtGui\qabstractitemview_wrapper.cpp)
Comment 1 Michael H 2010-09-24 00:16:38 EEST
MSVC Express 2008 on windows 7
Comment 2 Hugo Parente Lima 2010-09-24 10:48:55 EEST
Fixed on commit shiboken/874d046ce200be7bb0f815a54dcba39909481001

Thanks for the report =].
Comment 3 renato filho 2010-10-13 13:49:03 EEST
released on PySide 0.4.2