Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154012 - dev-python/pygame-1.6.2.ebuild unicode support patch
Summary: dev-python/pygame-1.6.2.ebuild unicode support patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 154025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-04 03:51 UTC by Plyatov Igor
Modified: 2008-03-03 13:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pygame-1.6.2-r1.ebuild and pygame-1.6.2-font.c.patch (pygame-1.6.2-r1.tar.gz,1.07 KB, application/gzip)
2006-11-04 04:17 UTC, Plyatov Igor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Plyatov Igor 2006-11-04 03:51:21 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-04 04:10:55 UTC
Well, I don't see any attachment (plus no tarballs please, just a plaintext patch, thanks).
Comment 2 Plyatov Igor 2006-11-04 04:17:30 UTC
Created attachment 101213 [details]
pygame-1.6.2-r1.ebuild and pygame-1.6.2-font.c.patch
Comment 3 Plyatov Igor 2006-11-04 04:25:08 UTC
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");
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-11-04 05:37:12 UTC
*** Bug 154025 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-11-04 05:37:23 UTC
Reopen.
Comment 6 Plyatov Igor 2006-12-03 06:20:38 UTC
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.
Comment 7 Charlie Shepherd (RETIRED) gentoo-dev 2006-12-09 02:45:16 UTC
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.
Comment 8 Pacho Ramos gentoo-dev 2007-02-11 20:47:16 UTC
Is dev-python/pygame-1.7.1 affected by this bug?

Good luck!
Comment 9 Timo Boettcher 2007-05-30 06:36:18 UTC
Bug and workaround verified for both pygame-1.6.2 and -1.7.1
Comment 10 Tiziano Müller (RETIRED) gentoo-dev 2008-03-03 13:56:59 UTC
Upstream solved this in version 1.8 (from which 1.8.0_rc4 is now in the tree).
Thanks.