mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
Update.
2002-10-17 Ulrich Drepper <drepper@redhat.com> * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call. * locale/programs/linereader.c (lr_open): Likewise. * locale/programs/charmap-dir.c (charmap_open): Likewise. * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
This commit is contained in:
parent
5be7fe9ce9
commit
2e2dc1a558
@ -1,3 +1,10 @@
|
||||
2002-10-17 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
|
||||
* locale/programs/linereader.c (lr_open): Likewise.
|
||||
* locale/programs/charmap-dir.c (charmap_open): Likewise.
|
||||
* locale/programs/locarchive.c (add_locale_to_archive): Likewise.
|
||||
|
||||
2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
|
||||
|
||||
* posix/bug-regex11.c: Add a test case for the bug reported by
|
||||
|
@ -224,7 +224,7 @@ charmap_open (const char *directory, const char *name)
|
||||
*p++ = '/';
|
||||
p = stpcpy (p, name);
|
||||
|
||||
stream = fopen (pathname, "r");
|
||||
stream = fopen (pathname, "rm");
|
||||
if (stream != NULL)
|
||||
return stream;
|
||||
|
||||
|
@ -56,7 +56,7 @@ lr_open (const char *fname, kw_hash_fct_t hf)
|
||||
return lr_create (stdin, "<stdin>", hf);
|
||||
else
|
||||
{
|
||||
fp = fopen (fname, "r");
|
||||
fp = fopen (fname, "rm");
|
||||
if (fp == NULL)
|
||||
return NULL;
|
||||
return lr_create (fp, fname, hf);
|
||||
|
@ -495,7 +495,7 @@ write_locales (void)
|
||||
char full_name[strlen (entry) + sizeof aliasfile];
|
||||
|
||||
stpcpy (stpcpy (full_name, entry), aliasfile);
|
||||
fp = fopen (full_name, "r");
|
||||
fp = fopen (full_name, "rm");
|
||||
if (fp == NULL)
|
||||
/* Ignore non-existing files. */
|
||||
continue;
|
||||
|
@ -971,7 +971,7 @@ add_locale_to_archive (ah, name, data, replace)
|
||||
if (alias_file != NULL)
|
||||
{
|
||||
FILE *fp;
|
||||
fp = fopen (alias_file, "r");
|
||||
fp = fopen (alias_file, "rm");
|
||||
if (fp == NULL)
|
||||
error (1, errno, _("locale alias file `%s' not found"),
|
||||
alias_file);
|
||||
|
Loading…
Reference in New Issue
Block a user