compiler: Correctly use g_strerror() instead of strerror()

This ensures the return value is always UTF-8.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-02-26 12:46:16 +00:00
parent 57a8834d7b
commit 08b3f14a32

View File

@ -100,7 +100,7 @@ write_out_typelib (gchar *prefix,
written = fwrite (typelib->data, 1, typelib->len, file);
if (written < typelib->len)
{
char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), strerror (errno));
char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), g_strerror (errno));
g_fprintf (stderr, "%s\n", message);
g_free (message);
goto out;