[gimp] app: do not use gimp_filename_to_utf8() in the signal handler.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: do not use gimp_filename_to_utf8() in the signal handler.
- Date: Mon, 9 Apr 2018 04:15:32 +0000 (UTC)
commit f77edcdf193e8c7b3117f797ec3daddccb5e4b20
Author: Jehan <jehan girinstud io>
Date: Mon Apr 9 06:08:48 2018 +0200
app: do not use gimp_filename_to_utf8() in the signal handler.
This function is unsafe during signal handling. And in any case, when
printing to stderr, I don't think we need to convert to UTF-8. Quite the
contrary, the system encoding may be more appropriate.
app/errors.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/app/errors.c b/app/errors.c
index 6d63b2d..ff0b8e0 100644
--- a/app/errors.c
+++ b/app/errors.c
@@ -325,8 +325,7 @@ gimp_eek (const gchar *reason,
/* Let's just always output on stdout at least so that there is a
* trace if the rest fails. */
- g_printerr ("%s: %s: %s\n", gimp_filename_to_utf8 (full_prog_name),
- reason, message);
+ g_printerr ("%s: %s: %s\n", full_prog_name, reason, message);
#if ! defined (G_OS_WIN32) || defined (HAVE_EXCHNDL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]