Code

charset: added "replace" functions
[ncmpc.git] / src / wreadln.c
index ad1047fd5cc001365a886264958710190b390379..66a1f1c2f5f72464fe7c48c5de84aae83c9c2bbb 100644 (file)
@@ -93,8 +93,7 @@ byte_to_screen(const gchar *data, size_t x)
 
        dup = g_strdup(data);
        dup[x] = 0;
-       p = locale_to_utf8(dup);
-       g_free(dup);
+       p = replace_locale_to_utf8(dup);
 
        width = utf8_width(p);
        g_free(p);