Merge pull request #55 from DanielSWolf/bugfix/#54-unicode-paths

Fix special characters in output file path
This commit is contained in:
Daniel Wolf 2019-01-04 21:38:47 +01:00 committed by GitHub
commit e5066b549f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@
* **Added** basic support for non-English recordings through phonetic recognition ([issue #45](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/45)).
* **Fixed** a bug that resulted in unwanted mouth movement at beginning of a recording ([issue #53](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/53)).
* **Fixed** a bug that garbled special characters in the output file path ([issue #54](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/54)).
* **Fixed** a bug that prevented the progress bar from reaching 100% ([issue #48](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/48)).
## Version 1.8.0

View File

@ -38,7 +38,6 @@ using std::unique_ptr;
using std::make_unique;
using std::shared_ptr;
using std::make_shared;
using std::ofstream;
using boost::filesystem::path;
using boost::adaptors::transformed;
using boost::optional;
@ -248,7 +247,7 @@ int main(int platformArgc, char* platformArgv[]) {
// Export animation
unique_ptr<Exporter> exporter = createExporter(exportFormat.getValue());
optional<ofstream> outputFile;
optional<boost::filesystem::ofstream> outputFile;
if (outputFileName.isSet()) {
outputFile = boost::in_place(outputFileName.getValue());
outputFile->exceptions(std::ifstream::failbit | std::ifstream::badbit);