Jim Meyering wrote:
If there is no better way to solve the problem, then I'd considerDon't forget, there is my workaround, it stills cause gettext() calls in the signal handler,
leaving the code the way it is.
but I cannot make it fail, unlike vanilla.
--- coreutils-5.3.0/src/dd.c
+++ coreutils-5.3.0/src/dd.c
@@ -1535,6 +1535,14 @@
#endif
}+ {
+ /*
+ * Initialize gettext here, so that we are sure it won't happen in a signal handler.
+ * Lower the burden on translators by avoiding to mark this meaningless string.
+ */
+ const char *tmp_msg = "x";
+ tmp_msg = _(tmp_msg);
+ }
install_handler (SIGINT, interrupt_handler);
install_handler (SIGQUIT, interrupt_handler);
install_handler (SIGPIPE, interrupt_handler);
Regards.
-- Guillaume
_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
