(load_charset_map_from_file): When a mapfile can't be loaded, signal
authorKenichi Handa <handa@m17n.org>
Thu, 19 Mar 2009 00:46:35 +0000 (00:46 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 19 Mar 2009 00:46:35 +0000 (00:46 +0000)
an error.

src/ChangeLog
src/charset.c

index 7d2f75d..29c2935 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-19  Kenichi Handa  <handa@m17n.org>
+
+       * charset.c (load_charset_map_from_file): When a mapfile can't be
+       loaded, signal an error.
+
 2009-03-18  Eli Zaretskii  <eliz@gnu.org>
 
        * dired.c (Ffile_attributes): Make sure UID and GID are always
index fa3515b..2781275 100644 (file)
@@ -522,10 +522,7 @@ load_charset_map_from_file (charset, mapfile, control_flag)
   unbind_to (count, Qnil);
   if (fd < 0
       || ! (fp = fdopen (fd, "r")))
-    {
-      add_to_log ("Failure in loading charset map: %S", mapfile, Qnil);
-      return;
-    }
+    error ("Failure in loading charset map: %S", SDATA (mapfile));
 
   head = entries = ((struct charset_map_entries *)
                    alloca (sizeof (struct charset_map_entries)));