Fix default compose table initialization
Oddly enough, unsigned int c = '\300'; puts a "negative" value in c, not 0300... This fixes the default unicode compose table by using integers instead of character constants. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
cad226b8a7
commit
5ce2087ed0
@ -151,8 +151,8 @@ char *func_table[MAX_NR_FUNC] = {
|
||||
};
|
||||
|
||||
struct kbdiacruc accent_table[MAX_DIACR] = {
|
||||
{'^', 'c', '\003'}, {'^', 'd', '\004'},
|
||||
{'^', 'z', '\032'}, {'^', '\012', '\000'},
|
||||
{'^', 'c', 0003}, {'^', 'd', 0004},
|
||||
{'^', 'z', 0032}, {'^', 0012', 0000},
|
||||
};
|
||||
|
||||
unsigned int accent_table_size = 4;
|
||||
|
Reference in New Issue
Block a user