Fix locale program error handling
If an unknown name is passed to locale, report it and fail.
This commit is contained in:
parent
f450806e22
commit
9d076f21cd
|
@ -1,3 +1,8 @@
|
||||||
|
2009-09-28 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* locale/programs/locale-spec.c (locale_special): If nothing matches
|
||||||
|
fail with an appropriate message.
|
||||||
|
|
||||||
2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
|
2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* configure.in: Exclude binutils 2.X. Support binutils 2.100
|
* configure.in: Exclude binutils 2.X. Support binutils 2.100
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Handle special requests.
|
/* Handle special requests.
|
||||||
Copyright (C) 1996, 1997, 1999, 2005 Free Software Foundation, Inc.
|
Copyright (C) 1996, 1997, 1999, 2005, 2009 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
|
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
|
||||||
|
|
||||||
|
@ -124,4 +124,7 @@ locale_special (const char *name, int show_category_name,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* If nothing matches, fail. */
|
||||||
|
error (1, 0, gettext ("unknown name \"%s\""), name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue