From 04b7af4df5fb0ea34be9077ec0110ea6902554a0 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 20 Jan 2010 08:45:31 +0000 Subject: [PATCH] - Fix renaming of files with unicode characters --- src/qtorrenthandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 1c2102a4a..5f2c5d32a 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -652,7 +652,7 @@ void QTorrentHandle::prioritize_first_last_piece(bool b) { } void QTorrentHandle::rename_file(int index, QString name) { - h.rename_file(index, name.toStdString()); + h.rename_file(index, std::string(name.toLocal8Bit().data())); } //