Package: python2.3-opengl Version: 2.0.1.08-5.1 Hello,
I try to display a degree character using glut in python2.3-opengl. This worked fine until a recent upgrade (I have no idea when it started failing, it woked fine in November). Instead of a degree I get '*'. The attached code shows correct characters on my termical, but incorrect characters on my glut-window. I have no idea why. My debian-testing system was upgraded this morning. Kernel 2.6.8.1 and 2.6.10 Thanks, Fulko -- Fulko van Westrenen [EMAIL PROTECTED]
#!/usr/bin/python2.3 import sys try: from OpenGL.GLUT import * from OpenGL.GL import * from OpenGL.GLU import * except: print ''' ERROR: PyOpenGL not installed properly. ''' sys.exit() def display(): glClear (GL_COLOR_BUFFER_BIT) glColor3f (1.0, 1.0, 1.0) glRasterPos2f(0.5,0.5) s=u'%03d\xb0' % (3) for c in s: ci=ord(c) print c glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18,ci) glFlush (); def init(): glClearColor (0.0, 0.0, 0.0, 0.0) glMatrixMode(GL_PROJECTION) glLoadIdentity() glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0) glutInit(sys.argv) glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB) glutInitWindowSize(250, 250) glutInitWindowPosition(100, 100) glutCreateWindow("unicode") init() glutDisplayFunc(display) glutMainLoop()