convert alternative header text to proper locale if needed

This commit is contained in:
Andrzej Rybczak
2009-08-13 03:38:11 +02:00
parent 829a7a8d98
commit 5a9369b585

View File

@@ -418,8 +418,8 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *)
}
basic_buffer<my_char_t> first, second;
String2Buffer(TO_WSTRING(np.toString(Config.new_header_first_line)), first);
String2Buffer(TO_WSTRING(np.toString(Config.new_header_second_line)), second);
String2Buffer(TO_WSTRING(utf_to_locale_cpy(np.toString(Config.new_header_first_line))), first);
String2Buffer(TO_WSTRING(utf_to_locale_cpy(np.toString(Config.new_header_second_line))), second);
size_t first_len = Window::Length(first.Str());
size_t first_margin = (std::max(tracklength.length()+1, VolumeState.length()))*2;