diff options
author | Max Kellermann <max@duempel.org> | 2008-11-07 16:14:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-07 16:14:39 +0100 |
commit | c238364f6833320fee4256226af650347d5a751b (patch) | |
tree | c04fbb8f91e34dea95410290b941bee627e66c18 /src/screen_browser.c | |
parent | 06aafa1328f50d247676c2eca488e53fa02c0dbd (diff) | |
download | mpd-c238364f6833320fee4256226af650347d5a751b.tar.gz mpd-c238364f6833320fee4256226af650347d5a751b.tar.xz mpd-c238364f6833320fee4256226af650347d5a751b.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/screen_browser.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |