Merge pull request #55 from DanielSWolf/bugfix/#54-unicode-paths
Fix special characters in output file path
This commit is contained in:
commit
e5066b549f
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue