Test your unicode-using code (Py3K Peeps)

"Mike C. Fletcher" <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
I've just landed a minimal patch in bzr head to support Unicode as an 
(incoming) array data-type on PyOpenGL.  The data-type converts to 
8-bit, then treats the result as a regular string.  Note that this means 
that the unicode string is *always* copied, and will raise errors with 
ERROR_ON_COPY set.

Note that this will not *produce* Unicode, it produces the 8-bit strings 
that are the api definitions for OpenGL, but it *should* allow you to 
pass in unicode strings for e.g. shader text, uniform names, etc.  I've 
only done the most minimal testing imaginable, as I don't have any 
unicode-using code, but if you're using Py3K you likely have lots of it 
and can tell me how magnificently it blows up :) .

Enjoy,
Mike

-- 
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.