From 33b60779d6ddca9ab94e8f43d3bdea1f136f0780 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 20 Jan 2010 08:48:11 +0000 Subject: [PATCH] BUGFIX: Fix renaming of files with unicode characters in their name --- Changelog | 1 + src/qtorrenthandle.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 83fa02385..9c2ad12d9 100644 --- a/Changelog +++ b/Changelog @@ -6,6 +6,7 @@ - BUGFIX: Configure file now checks for pkg-config executable which is required - BUGFIX: Torrents added from magnet links were not remembered on restart - BUGFIX: "Add in pause" setting can be ignored from torrent addition dialog + - BUGFIX: Fix renaming of files with unicode characters in their name * Mon Jan 18 2010 - Christophe Dumez - v2.1.0 - FEATURE: Graphical User Interface can be disabled at compilation time (headless running) 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())); } //