2001-04-25 Ulrich Drepper <drepper@redhat.com>
* locale/programs/localedef.c (main): Always set a file name for
the initial locale.
* locale/programs/locfile.c (locfile_read): filename is allowed to
be NULL.
+2001-04-25 Ulrich Drepper <drepper@redhat.com>
+
+ * locale/programs/localedef.c (main): Always set a file name for
+ the initial locale.
+ * locale/programs/locfile.c (locfile_read): filename is allowed to
+ be NULL.
+
2001-04-12 Paul Bame <paul_bame@hp.com>
* sysdeps/hppa/fpu/fclrexcpt.c: Clear the exception flags, not the
/* Add the first entry in the locale list. */
memset (&global, '\0', sizeof (struct localedef_t));
- global.name = input_file;
+ global.name = input_file ?: "/dev/stdin";
global.needed = ALL_LOCALES;
locales = &global;
ldfile = lr_open (filename, locfile_hash);
if (ldfile == NULL)
{
- if (filename[0] != '/')
+ if (filename != NULL && filename[0] != '/')
{
char *i18npath = getenv ("I18NPATH");
if (i18npath != NULL && *i18npath != '\0')