Use QFile::decodeName when reading command-line arguments. Fixes isse #752

This commit is contained in:
David Sansome 2010-09-25 15:15:05 +00:00
parent 625e4dffdb
commit 6971f81be4

View File

@ -226,7 +226,7 @@ bool CommandlineOptions::Parse() {
// Get any filenames or URLs following the arguments
for (int i=optind ; i<argc_ ; ++i) {
QString value = QString::fromLocal8Bit(argv_[i]);
QString value = QFile::decodeName(argv_[i]);
if (value.contains("://"))
urls_ << value;
else