mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-19 13:40:59 +08:00
Update.
2000-06-07 Ulrich Drepper <drepper@redhat.com> * locale/programs/charmap.c: Allow string arguments for code_set_name and repertoiremap.
This commit is contained in:
parent
99ac5e47c0
commit
2a63199095
@ -1,3 +1,8 @@
|
||||
2000-06-07 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* locale/programs/charmap.c: Allow string arguments for
|
||||
code_set_name and repertoiremap.
|
||||
|
||||
2000-06-07 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* elf/Makefile: Build ldconfig only when building shared libraries.
|
||||
|
@ -155,6 +155,8 @@ charmap_read (const char *filename)
|
||||
char junk[BUFSIZ];
|
||||
|
||||
if (fscanf (fp, " <code_set_name> %as", &name) == 1
|
||||
|| (fscanf (fp, " <code_set_name> \"%as\"", &name)
|
||||
== 1)
|
||||
|| fscanf (fp, "%% alias %as", &name) == 1)
|
||||
{
|
||||
if (strcasecmp (name, filename) == 0)
|
||||
@ -317,7 +319,7 @@ parse_charmap (struct linereader *cmfile)
|
||||
{
|
||||
case tok_code_set_name:
|
||||
case tok_repertoiremap:
|
||||
if (arg->tok != tok_ident)
|
||||
if (arg->tok != tok_ident && arg->tok != tok_string)
|
||||
{
|
||||
badarg:
|
||||
lr_error (cmfile, _("syntax error in prolog: %s"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user