mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
Update.
* locale/programs/charmap.c (charmap_read): Find charmap also in the standard directory.
This commit is contained in:
parent
f065a05b69
commit
b2386e4ed4
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user