diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-10-06 16:09:35 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-10-06 16:11:55 +0200 |
commit | 03f2123447b1a5537db1cdde016eb87eb2d2371f (patch) | |
tree | 1af7e50a4183d82bc20b488fbbb93192cb7356e5 /src/utils.c | |
parent | 3c87b95c3189077aa52307a7f904d693a8b2f3cb (diff) | |
download | tdv-03f2123447b1a5537db1cdde016eb87eb2d2371f.tar.gz tdv-03f2123447b1a5537db1cdde016eb87eb2d2371f.tar.xz tdv-03f2123447b1a5537db1cdde016eb87eb2d2371f.zip |
GLib-related improvements
Now all error messages produced by tools should be in the right
encoding, even if the system isn't in UTF-8.
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index 89cca9a..8c63548 100644 --- a/src/utils.c +++ b/src/utils.c @@ -17,6 +17,7 @@ */ #include <glib.h> +#include <glib/gprintf.h> #include <gio/gio.h> #include <stdlib.h> #include <errno.h> @@ -107,7 +108,7 @@ fatal (const gchar *format, ...) { va_list ap; va_start (ap, format); - vfprintf (stderr, format, ap); + g_vfprintf (stderr, format, ap); exit (EXIT_FAILURE); va_end (ap); } |