Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 17 Feb 2000 07:36:53 +0000 (07:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 17 Feb 2000 07:36:53 +0000 (07:36 +0000)
* locale/programs/charmap.c (charmap_read): Find charmap also in
the standard directory.

ChangeLog
locale/programs/charmap.c

index e654e14..06133d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-02-16  Ulrich Drepper  <drepper@redhat.com>
 
+       * locale/programs/charmap.c (charmap_read): Find charmap also in
+       the standard directory.
+
        * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correct prototype for
        __syscall_mmap2.
 
index b4bce4f..0c54c78 100644 (file)
@@ -99,6 +99,15 @@ charmap_read (const char *filename)
                        }
                    }
                }
+
+             if (cmfile == NULL)
+               {
+                 /* Try the default directory.  */
+                 char path[sizeof (CHARMAP_PATH) + strlen (filename) + 1];
+
+                 stpcpy (stpcpy (stpcpy (path, CHARMAP_PATH), "/"), filename);
+                 cmfile = lr_open (path, charmap_hash);
+               }
            }
        }