diff options
Diffstat (limited to 'modules/m4.c')
-rw-r--r-- | modules/m4.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/m4.c b/modules/m4.c index 0c9a1456..e9695a32 100644 --- a/modules/m4.c +++ b/modules/m4.c @@ -28,6 +28,7 @@ # include "m4private.h" #endif +#include "quotearg.h" #include "stdlib--.h" #include "tempname.h" #include "unistd--.h" @@ -600,11 +601,12 @@ M4BUILTIN_HANDLER (undivert) { m4_insert_file (context, fp); if (fclose (fp) == EOF) - m4_error (context, 0, errno, me, _("error undiverting `%s'"), - str); + m4_error (context, 0, errno, me, _("error undiverting %s"), + quotearg_style (locale_quoting_style, str)); } else - m4_error (context, 0, errno, me, _("cannot undivert `%s'"), str); + m4_error (context, 0, errno, me, _("cannot undivert `%s'"), + quotearg_style (locale_quoting_style, str)); } } } @@ -664,8 +666,8 @@ include (m4 *context, int argc, m4_macro_args *argv, bool silent) if (fp == NULL) { if (!silent) - m4_error (context, 0, errno, m4_arg_info (argv), _("cannot open `%s'"), - M4ARG (1)); + m4_error (context, 0, errno, m4_arg_info (argv), _("cannot open %s"), + quotearg_style (locale_quoting_style, M4ARG (1))); return; } |