aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2004-10-15 02:10:42 +0000
committerKenichi Handa2004-10-15 02:10:42 +0000
commit943a83ad39d6db5d9d86c4b40b2f370f6a3620ed (patch)
tree69e22573cd2ae24fa97466159f06bc3082c6465d /src
parent90c9d03551184708880939837f125b07b1d5f1d5 (diff)
downloademacs-943a83ad39d6db5d9d86c4b40b2f370f6a3620ed.tar.gz
emacs-943a83ad39d6db5d9d86c4b40b2f370f6a3620ed.zip
(Fset_unibyte_charset): Setup
unibyte_has_multibyte_table.
Diffstat (limited to 'src')
-rw-r--r--src/charset.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c
index e0bfcb5eb76..5924d2af6dc 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1174,10 +1174,12 @@ function `unibyte-charset'. */)
1174 || cs->dimension != 1) 1174 || cs->dimension != 1)
1175 error ("Inappropriate unibyte charset: %s", SDATA (SYMBOL_NAME (charset))); 1175 error ("Inappropriate unibyte charset: %s", SDATA (SYMBOL_NAME (charset)));
1176 charset_unibyte = cs->id; 1176 charset_unibyte = cs->id;
1177 memset (unibyte_has_multibyte_table, 1, 128);
1177 for (i = 128; i < 256; i++) 1178 for (i = 128; i < 256; i++)
1178 { 1179 {
1179 c = DECODE_CHAR (cs, i); 1180 c = DECODE_CHAR (cs, i);
1180 unibyte_to_multibyte_table[i] = (c < 0 ? BYTE8_TO_CHAR (i) : c); 1181 unibyte_to_multibyte_table[i] = (c < 0 ? BYTE8_TO_CHAR (i) : c);
1182 unibyte_has_multibyte_table[i] = c >= 0;
1181 } 1183 }
1182 1184
1183 return Qnil; 1185 return Qnil;