From 9ba5fc9653534d34193a130240c77971905832c7 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Fri, 4 Jan 2019 21:29:03 +0100 Subject: [PATCH] Fix special characters in output file path Issue #54 --- CHANGELOG.md | 1 + rhubarb/src/rhubarb/main.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf8adfc..e5bd11e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/rhubarb/src/rhubarb/main.cpp b/rhubarb/src/rhubarb/main.cpp index 3f1f38e..e873422 100644 --- a/rhubarb/src/rhubarb/main.cpp +++ b/rhubarb/src/rhubarb/main.cpp @@ -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 = createExporter(exportFormat.getValue()); - optional outputFile; + optional outputFile; if (outputFileName.isSet()) { outputFile = boost::in_place(outputFileName.getValue()); outputFile->exceptions(std::ifstream::failbit | std::ifstream::badbit);