Hi! Please find attached pygame-1.6.2-r1.tar.gz containing 'pygame-1.6.2-r1.ebuild' and a 'pygame-1.6.2-font.c.patch' which corrects the bug with unicode support. The normal support of unicode in media-tv/freevo depends on unicode support in dev-python/pygame. -- Plyatov Igor
Well, I don't see any attachment (plus no tarballs please, just a plaintext patch, thanks).
Created attachment 101213 [details] pygame-1.6.2-r1.ebuild and pygame-1.6.2-font.c.patch
diff -Naur pygame-1.6.2/src/font.c pygame-1.6.2-patched/src/font.c --- pygame-1.6.2/src/font.c 2004-07-15 13:14:44.000000000 +0400 +++ pygame-1.6.2-patched/src/font.c 2006-11-04 13:29:19.000000000 +0300 @@ -476,12 +476,12 @@ if(aa) { if(!bg_rgba_obj) - surf = TTF_RenderText_Blended(font, string, foreg); + surf = TTF_RenderUTF8_Blended(font, string, foreg); else - surf = TTF_RenderText_Shaded(font, string, foreg, backg); + surf = TTF_RenderUTF8_Shaded(font, string, foreg, backg); } else - surf = TTF_RenderText_Solid(font, string, foreg); + surf = TTF_RenderUTF8_Solid(font, string, foreg); } else return RAISE(PyExc_TypeError, "text must be a string or unicode");
*** Bug 154025 has been marked as a duplicate of this bug. ***
Reopen.
What is wrong from my side? Why patch and pygame-1.6.2.ebuild is not included in portage tree? I work with this patches 3 month and all ok.
I'm not on the python team, but I imagine they'd prefer it if you sent this upstream. Also, please attach things in plain-text only - then we can read them from a browser.
Is dev-python/pygame-1.7.1 affected by this bug? Good luck!
Bug and workaround verified for both pygame-1.6.2 and -1.7.1
Upstream solved this in version 1.8 (from which 1.8.0_rc4 is now in the tree). Thanks.