[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] BUG: import font fails with python2.3 cvs 1.7.2pre 2006/01/13
- To: pygame-users@xxxxxxxx
- Subject: [pygame] BUG: import font fails with python2.3 cvs 1.7.2pre 2006/01/13
- From: Rene Dudfield <renesd@xxxxxxxxx>
- Date: Fri, 13 Jan 2006 10:47:39 +1100
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 12 Jan 2006 18:47:46 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KrwT+Nv6HDgTaEEGzbQWR0VPChgr0NWKScyoz+I/c/BMj+TvZmrcNaHZY2qCbvAHca3PrlgkI+4bgNwApiO6Mu4deg55rNSUDHMAPVQpYN3QoKfnI6A8NyTnIqyR+DmvwdrnBSWmDp0UeDs1WH4/8WajzJ4hIZF0fsQeImOTHeU=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
$ python
Python 2.3.5 (#2, Jun 19 2005, 13:28:00)
[GCC 3.3.6 (Debian 1:3.3.6-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame.font
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: /usr/lib/python2.3/site-packages/pygame/font.so:
undefined symbol: PyUnicode_AsEncodedObject
This has to do with the recent unicode change to font.c
----------------------------
revision 1.55
date: 2005-12-08 17:21:05 +0000; author: pygame; state: Exp; lines: +6 -4
When rendering unicode, use the python c function to convert
unicode to UTF8. Previously used a "CallMethod" on the unicode object.
----------------------------
Looks like it is to do with the use of PyUnicode_AsEncodedObject which
is only in python 2.4 not python2.3 or earlier.
Maybe PyUnicode_AsEncodedString could be used instead? That is
available in python2.3, and python2.2.