Skip to content

Commit

Permalink
Fix issue 429: output filenames interperted as latin1 instead of utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
antialize committed Oct 3, 2011
1 parent 870b16a commit b92de59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/image/imagecommandlineparser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ void ImageCommandLineParser::parseArguments(int argc, const char ** argv, bool f
bool defaultMode=false;
for (int i=1; i < argc; ++i) {
if (i==argc-2 && (argv[i][0] != '-' || argv[i][1] == '\0')) { // the arg before last (in)
settings.in = argv[i];
settings.in = QString::fromUtf8(argv[i]);
} else if (i==argc-1 && (argv[i][0] != '-' || argv[i][1] == '\0')) { // the last arg (out)
settings.out = argv[i];
settings.out = QString::fromUtf8(argv[i]);
} else {
parseArg(global, argc, argv, defaultMode, i, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pdf/pdfcommandlineparser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,5 @@ void PdfCommandLineParser::parseArguments(int argc, const char ** argv, bool fro
usage(stderr, false);
exit(1);
}
globalSettings.out = argv[argc-1];
globalSettings.out = QString::fromUtf8(argv[argc-1]);
}

0 comments on commit b92de59

Please sign in to comment.