mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-20 10:23:57 +00:00
(init_charset_once): Set the table bytes_by_char_head
correctly.
This commit is contained in:
parent
8ccce2b002
commit
a5236564c6
@ -1570,17 +1570,16 @@ init_charset_once ()
|
||||
|
||||
for (i = 0; i < 256; i++)
|
||||
bytes_by_char_head[i] = 1;
|
||||
for (i = MIN_CHARSET_OFFICIAL_DIMENSION1;
|
||||
i <= MAX_CHARSET_OFFICIAL_DIMENSION1; i++)
|
||||
for (i = 128; i < MIN_CHARSET_OFFICIAL_DIMENSION2; i++)
|
||||
bytes_by_char_head[i] = 2;
|
||||
for (i = MIN_CHARSET_OFFICIAL_DIMENSION2;
|
||||
i <= MAX_CHARSET_OFFICIAL_DIMENSION2; i++)
|
||||
for (; i <= MAX_CHARSET_OFFICIAL_DIMENSION2; i++)
|
||||
bytes_by_char_head[i] = 3;
|
||||
for (; i < 160; i++)
|
||||
bytes_by_char_head[i] = 2;
|
||||
bytes_by_char_head[LEADING_CODE_PRIVATE_11] = 3;
|
||||
bytes_by_char_head[LEADING_CODE_PRIVATE_12] = 3;
|
||||
bytes_by_char_head[LEADING_CODE_PRIVATE_21] = 4;
|
||||
bytes_by_char_head[LEADING_CODE_PRIVATE_22] = 4;
|
||||
bytes_by_char_head[LEADING_CODE_8_BIT_CONTROL] = 2;
|
||||
|
||||
for (i = 0; i < 128; i++)
|
||||
width_by_char_head[i] = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user