From c238364f6833320fee4256226af650347d5a751b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 7 Nov 2008 16:14:39 +0100 Subject: mpdclient: expect UTF-8 strings Don't convert the character set of strings to and from the current locale. This library cannot know what the strings are going to be used for, so it should not mess with them. --- src/screen_browser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/screen_browser.c') diff --git a/src/screen_browser.c b/src/screen_browser.c index a09e2554c..69e39ffaf 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -197,7 +197,7 @@ browser_change_directory(struct screen_browser *browser, mpdclient_t *c, } else if( entity->type==MPD_INFO_ENTITY_TYPE_DIRECTORY) { /* enter sub */ mpd_Directory *dir = entity->info.directory; - path = utf8_to_locale(dir->path); + path = g_strdup(dir->path); } else return -1; @@ -360,7 +360,7 @@ browser_select_entry(mpdclient_t *c, filelist_entry_t *entry, #ifdef USE_OLD_ADD add_directory(c, tmp); #else - if (mpdclient_cmd_add_path_utf8(c, dir->path) == 0) { + if (mpdclient_cmd_add_path(c, dir->path) == 0) { char *tmp = utf8_to_locale(dir->path); screen_status_printf(_("Adding \'%s\' to playlist\n"), tmp); -- cgit v1.2.3