From kwrite-devel Wed Nov 21 22:43:50 2012 From: Luca Beltrame Date: Wed, 21 Nov 2012 22:43:50 +0000 To: kwrite-devel Subject: Re: Review Request: Tidy up Python 3 support. Message-Id: <1590702.UKsrrs8E1x () leon ! lan> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=135355609101533 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0569994894550297114==" --===============0569994894550297114== Content-Type: multipart/signed; boundary="nextPart3994779.xcSMoDj8IR"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: quoted-printable --nextPart3994779.xcSMoDj8IR Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" In data mercoled=EC 21 novembre 2012 21:44:30, Shaheed Haque ha scritto= : > fix that? The code around it is the same for 3.2 and 3.3, so if you > can get it to build on 3.3, that would be a start. I managed to get it to build if I used PyUnicode_AS_DATA rather than 1_= BYTE=20 etc. to get the string which is then passed to QString: http://docs.python.org/3.2/c-api/unicode.html#PyUnicode_AS_DATA --=20 Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: 6E1A4E79 --nextPart3994779.xcSMoDj8IR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAABAgAGBQJQrVkpAAoJEAE/pQtuGk55Uw0QAJFCryvIFtmZAjLbbYBCf9Rb Vqco+23G8ceKPNVeVvFBgq1nKhXIOxDwXwWS7mEmicGX85lDi8CXhIgXZ8Aspnwm TEJph+g9+7a7UxH/74xbJWyL1F04ms3ol0mseE+oTW+/4yq8o+czToOMSd+Pe3cB +BwA+f3p3ELnQu9UiVEImcar+iwT8jKOpEkrMcfy7ZN9SevKOMshM3xxhZAafWrR 6IM6h4M9hV0UpHif3gqj+TNIvpxMwSTQWR9tewI3O6OLsVTajZlFhDv9xnaalfwQ 9aOnHqRGUe2DlAOhC5DfRV8TnVi/XFP89iqliz3+1ELnss+a6WEw/EFDhnawV8hR kGKKafMJ/Em3b1cIrRc4Bd3xrOxbWQ6kndcopkxWZ8oOAXMNLugSspYfEXI5vGC0 qccimx8V1B1BwgmUImwhy/QUisbtrtRwnHjuovfsEeZIjzmxGB4W8oztB8BGdxp/ SEdBWy7oN/GL+Kuvq57aP5bVNTKlwmwHQOMUoupZpTdaVv/KoMc/cLlgNjdqmesc n/owXeb5Dlkh9j+UKcdXqtjnG/KC63Q5fy1Bcx9O8s1KbIKx6GdQVobEU2liddTV o/ZqxJ019ehe1KMoni455Fi6sz2YocZ12TVo3kPqbUDMOIsVSDOI+9at9vyKcfg9 LJTgfNur5YHzBJK5MYb2 =T7cM -----END PGP SIGNATURE----- --nextPart3994779.xcSMoDj8IR-- --===============0569994894550297114== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel --===============0569994894550297114==--