App: fixes #7112: Addon manager does not work on windows with special characters in the username

This commit is contained in:
wmayer
2022-07-29 12:43:05 +02:00
parent 94bdb5aa28
commit c5a0f64f19

View File

@@ -99,7 +99,11 @@ Metadata::Metadata(const fs::path& metadataFile)
auto errHandler = std::make_unique<MetadataInternal::XMLErrorHandler>();
_parser->setErrorHandler(errHandler.get());
#if defined (FC_OS_WIN32)
_parser->parse(reinterpret_cast<const XMLCh*>(metadataFile.wstring().c_str()));
#else
_parser->parse(metadataFile.string().c_str());
#endif
auto doc = _parser->getDocument();
_dom = doc->getDocumentElement();