aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-10-13 13:55:23 +0200
committerJake Petroules <jake.petroules@qt.io>2017-10-16 13:30:33 +0000
commit3116ae45c230a9e0cd4ca3d3abaf4a961e34cb04 (patch)
tree809788ede9c8f497966cc1c94d41a1d2c0bde0a8 /src/plugins
parentb4b1ad197c919416beed1dd6d218d12f6867f58b (diff)
Fix the build with MinGW
codecvt is an internal MSVC header which is included by the standard C++ header "locale", and stdlibc++ prior to GCC 5 is missing functionality from locale. In any case, we'll assume stdlibc++ on Windows takes care of encoding issues, even if it doesn't. Change-Id: I6667af9737510c6b8ffa80325b84279d36b781e3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/generator/visualstudio/visualstudioguidpool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/generator/visualstudio/visualstudioguidpool.cpp b/src/plugins/generator/visualstudio/visualstudioguidpool.cpp
index 780735fcb..d6d716ff2 100644
--- a/src/plugins/generator/visualstudio/visualstudioguidpool.cpp
+++ b/src/plugins/generator/visualstudio/visualstudioguidpool.cpp
@@ -30,6 +30,7 @@
#include "visualstudioguidpool.h"
#include <tools/filesaver.h>
+#include <tools/iosutils.h>
#include <QtCore/quuid.h>
#include <fstream>
@@ -53,7 +54,7 @@ VisualStudioGuidPool::VisualStudioGuidPool(const std::string &storeFilePath)
: d(std::make_shared<VisualStudioGuidPoolPrivate>())
{
// Read any existing GUIDs from the on-disk store
- std::ifstream file(d->storeFilePath = storeFilePath);
+ std::ifstream file(Internal::utf8_to_native_path(d->storeFilePath = storeFilePath));
if (file.is_open()) {
const auto data = JsonDocument::fromJson(std::string {
std::istreambuf_iterator<std::ifstream::char_type>(file),