From 7e861cf9f28b2e0c0e194ccae2ffc02d5843e0e6 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Tue, 25 Oct 2005 20:15:26 +0000 Subject: [PATCH] * Store and display the encoding for the currently used filename. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@586 e378c898-3ddf-0310-93e7-cc216c733640 --- src/display/window_file_list.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/display/window_file_list.cc b/src/display/window_file_list.cc index c0c5812e..c16f92e3 100644 --- a/src/display/window_file_list.cc +++ b/src/display/window_file_list.cc @@ -37,6 +37,7 @@ #include "config.h" #include +#include #include "core/download.h" #include "rak/algorithm.h" @@ -107,12 +108,13 @@ WindowFileList::redraw() { break; }; - m_canvas->print(0, pos, "%c %s %6.1f %s %3d", + m_canvas->print(0, pos, "%c %s %6.1f %s %3d %s", range.first == *m_focus ? '*' : ' ', path.c_str(), (double)e.get_size() / (double)(1 << 20), priority.c_str(), - done_percentage(e)); + done_percentage(e), + e.path_list()->encoding().c_str()); ++range.first; ++pos;