+2008-11-29 Kenichi Handa <handa@m17n.org>
+
+ * charset.c (Fdefine_charset_internal): After calculating
+ min_char, max_char, and fastmap, copy the charset structure again.
+ (encode_char): Fix the previous change.
+
2008-11-28 Seiji Zenitani <zenitani@mac.com>
* frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
charset_table[id] = charset;
if (charset.method == CHARSET_METHOD_MAP)
- load_charset (&charset, 0);
+ {
+ load_charset (&charset, 0);
+ charset_table[id] = charset;
+ }
if (charset.iso_final >= 0)
{
encoder = CHARSET_ENCODER (charset);
if (! CHAR_TABLE_P (CHARSET_ENCODER (charset)))
- load_charset (charset);
- if (CHAR_TABLE_P (CHARSET_ENCODER (charset)))
+ {
+ load_charset (charset, 2);
+ encoder = CHARSET_ENCODER (charset);
+ }
+ if (CHAR_TABLE_P (encoder))
{
val = CHAR_TABLE_REF (encoder, c);
if (NILP (val))