some fixes for non-unicode locales

This commit is contained in:
Andrzej Rybczak
2009-03-07 13:26:36 +01:00
parent a4599fffe7
commit 3523caa592
4 changed files with 9 additions and 6 deletions

View File

@@ -385,6 +385,7 @@ void Browser::GetDirectory(string dir, string subdir)
parent.song = (Song *) 1; // in that way we assume that's really parent dir
parent.name = slash != string::npos ? dir.substr(0, slash) : "/";
parent.type = itDirectory;
utf_to_locale(parent.name);
w->AddOption(parent);
}