aboutsummaryrefslogtreecommitdiffstats
path: root/screen_file.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-22 12:39:56 +0000
committerKalle Wallin <kaw@linux.se>2004-03-22 12:39:56 +0000
commit471e8f4e0a677c680db961d1bbd432b2a9ce1de9 (patch)
tree2ead8e454eec931a3994af32f4eaa5f86073afc1 /screen_file.c
parent0afa78d699cadd92966318d382ec5261a8b799b8 (diff)
downloadmpd-471e8f4e0a677c680db961d1bbd432b2a9ce1de9.tar.gz
mpd-471e8f4e0a677c680db961d1bbd432b2a9ce1de9.tar.xz
mpd-471e8f4e0a677c680db961d1bbd432b2a9ce1de9.zip
Convert the directory name in file_get_header() from utf-8.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@362 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'screen_file.c')
-rw-r--r--screen_file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/screen_file.c b/screen_file.c
index 34c4669de..086290f74 100644
--- a/screen_file.c
+++ b/screen_file.c
@@ -247,11 +247,14 @@ char *
file_get_header(mpd_client_t *c)
{
static char buf[64];
+ char *tmp;
+ tmp = utf8_to_locale(basename(c->cwd));
snprintf(buf, 64,
TOP_HEADER_FILE ": %s ",
- basename(c->cwd)
+ tmp
);
+ free(tmp);
return buf;
}