Commit a5236564 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(init_charset_once): Set the table bytes_by_char_head

correctly.
parent 8ccce2b0
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment