aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}