[sysprof] Fix encoding of error message



commit aab051f9442c7256790a58f57f0f23ec1b982390
Author: Pascal Terjan <pterjan mandriva com>
Date:   Tue Mar 23 18:09:14 2010 +0100

    Fix encoding of error message
    
    Use g_strerror instead of strerror to get UTF-8

 collector.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]