From aab051f9442c7256790a58f57f0f23ec1b982390 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 23 Mar 2010 18:09:14 +0100 Subject: Fix encoding of error message Use g_strerror instead of strerror to get UTF-8 --- collector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector.c b/collector.c index 7eef464..d93f353 100644 --- a/collector.c +++ b/collector.c @@ -360,7 +360,7 @@ static void * fail (GError **err, const char *what) { g_set_error (err, COLLECTOR_ERROR, COLLECTOR_ERROR_FAILED, - "%s: %s", what, strerror (errno)); + "%s: %s", what, g_strerror (errno)); return NULL; } -- cgit v1.2.3