use g_strerror() instead of strerror()

Make sure we get a UTF-8 encoded string.
This commit is contained in:
Max Kellermann
2012-03-06 22:06:08 +01:00
parent faf35e6082
commit 5016839b90
12 changed files with 29 additions and 28 deletions

View File

@@ -117,7 +117,8 @@ print_playlist_result(struct client *client,
return COMMAND_RETURN_OK;
case PLAYLIST_RESULT_ERRNO:
command_error(client, ACK_ERROR_SYSTEM, "%s", strerror(errno));
command_error(client, ACK_ERROR_SYSTEM, "%s",
g_strerror(errno));
return COMMAND_RETURN_ERROR;
case PLAYLIST_RESULT_DENIED: