]> git.baikalelectronics.ru Git - kernel.git/commit
unicode diacritics support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 17 Oct 2007 06:27:04 +0000 (23:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:52 +0000 (08:42 -0700)
commit6637940c2e09c67dddbfd1a76f10c6f91d18caa0
treeed0d84a533e26a2c9f18d53413d183252e1d925f
parent728431361a4dae29aed616249b7f79243e65c0a0
unicode diacritics support

There have been issues with non-latin1 diacritics and unicode.
http://bugzilla.kernel.org/show_bug.cgi?id=7746

Git 9779bb4e56a801662019f9cfa07a30ce1d66352c `Kernel utf-8 handling'
partly resolved it by adding conversion between diacritics and
unicode. The patch below goes further by just turning diacritics into
unicode, hence providing better future support. The kbd support can be
fetched from
http://bugzilla.kernel.org/attachment.cgi?id=12313

This was tested in all of latin1, latin9, latin2 and unicode with french
and czech dead keys.

Turn the kernel accent_table into unicode, and extend ioctls KDGKBDIACR
and KDSKBDIACR into their equivalents KDGKBDIACRUC and KDSKBDIACR.

New function int conv_uni_to_8bit(u32 uni) for converting unicode into 8bit
_input_.  No, we don't want to store the translation, as it is potentially
sparse and large.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: Jan Engelhardt <jengelh@gmx.de>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
drivers/acorn/char/defkeymap-l7200.c
drivers/char/consolemap.c
drivers/char/defkeymap.c_shipped
drivers/char/keyboard.c
drivers/char/vt_ioctl.c
drivers/s390/char/defkeymap.c
drivers/s390/char/keyboard.c
drivers/s390/char/keyboard.h
drivers/tc/lk201-map.c_shipped
include/linux/consolemap.h
include/linux/kbd_diacr.h
include/linux/kd.h