mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
Fix encoding of error message
Use g_strerror instead of strerror to get UTF-8
This commit is contained in:
@ -360,7 +360,7 @@ static void *
|
|||||||
fail (GError **err, const char *what)
|
fail (GError **err, const char *what)
|
||||||
{
|
{
|
||||||
g_set_error (err, COLLECTOR_ERROR, COLLECTOR_ERROR_FAILED,
|
g_set_error (err, COLLECTOR_ERROR, COLLECTOR_ERROR_FAILED,
|
||||||
"%s: %s", what, strerror (errno));
|
"%s: %s", what, g_strerror (errno));
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user