From 5016839b90274017696e0942f424d4f361d39ea2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 6 Mar 2012 22:06:08 +0100 Subject: use g_strerror() instead of strerror() Make sure we get a UTF-8 encoded string. --- test/run_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/run_filter.c') diff --git a/test/run_filter.c b/test/run_filter.c index d1dffc190..8e793b768 100644 --- a/test/run_filter.c +++ b/test/run_filter.c @@ -183,7 +183,7 @@ int main(int argc, char **argv) nbytes = write(1, dest, length); if (nbytes < 0) { - g_printerr("Failed to write: %s\n", strerror(errno)); + g_printerr("Failed to write: %s\n", g_strerror(errno)); filter_close(filter); filter_free(filter); return 1; -- cgit v1.2.3