Bug#361802: libsdl1.2debian: keysym.unicode broken in utf-8 locales

Marc Lehmann debian-reportbug at plan9.de
Mon Apr 10 12:25:20 UTC 2006

Package: libsdl1.2debian
Version: 1.2.9-4
Severity: normal

The unicode member of the keysym structure is broken when running with SDL
in unicode locales.

For example, when pressing the "ö" key on a german keyboard in the C (or
de_DE.ISO-8859-1) locale, I correctly get "246" (unicode character number
of "ö"). Under an UTF-8 locale (e.g. de_DE.UTF-8), I get 195 for ö (and
other non-ascii latin1 characters such as ü or ·).

Incidentally, "195" is the first octet of the UTF-8 representation of
those characters, so it seems SDL just puts the first octet of the encoded
character into the unicode member.

This bug makes it imposible to enter non-ascii characters in UTf-8
locales (and probably every non-latin1 locale, € doesn't work in
de_DE.ISO-8859-9 either).

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages libsdl1.2debian depends on:
ii  libsdl1.2debian-alsa          1.2.9-4    Simple DirectMedia Layer (with X11

libsdl1.2debian recommends no packages.

-- no debconf information

More information about the Pkg-sdl-maintainers mailing list