mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 04:56:43 +07:00
04c7197650
There have been issues with non-latin1 diacritics and unicode.
http://bugzilla.kernel.org/show_bug.cgi?id=7746
Git 759448f459
`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>
21 lines
526 B
C
21 lines
526 B
C
/*
|
|
* consolemap.h
|
|
*
|
|
* Interface between console.c, selection.c and consolemap.c
|
|
*/
|
|
#define LAT1_MAP 0
|
|
#define GRAF_MAP 1
|
|
#define IBMPC_MAP 2
|
|
#define USER_MAP 3
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct vc_data;
|
|
|
|
extern u16 inverse_translate(struct vc_data *conp, int glyph, int use_unicode);
|
|
extern unsigned short *set_translate(int m, struct vc_data *vc);
|
|
extern int conv_uni_to_pc(struct vc_data *conp, long ucs);
|
|
extern u32 conv_8bit_to_uni(unsigned char c);
|
|
extern int conv_uni_to_8bit(u32 uni);
|
|
void console_map_init(void);
|