From b482d0364ed55c171708cd95922a896f002b6043 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 29 Aug 2015 16:37:29 -0400 Subject: localedef: improve error message [BZ #16985] If you pass in a path that fails to be opened, then output_path is set to NULL, and an error is flagged. Then at the end, we use both of those: cannot write output files to `(null)': No such file or directory Tweak the message to use the user's input when output_path is NULL. --- locale/programs/localedef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'locale') diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c index 2a0f2aa709..06fca12094 100644 --- a/locale/programs/localedef.c +++ b/locale/programs/localedef.c @@ -286,7 +286,7 @@ cannot open locale definition file `%s'"), runp->name)); { if (cannot_write_why != 0) WITH_CUR_LOCALE (error (4, cannot_write_why, _("\ -cannot write output files to `%s'"), output_path)); +cannot write output files to `%s'"), output_path ? : argv[remaining])); else write_all_categories (locales, charmap, argv[remaining], output_path); } -- cgit v1.2.3