From fd92912b6bf084f793232880f6f04b869b5ec18a Mon Sep 17 00:00:00 2001 From: Brannon King Date: Mon, 30 Sep 2019 13:58:11 -0600 Subject: [PATCH] windows compilation fix round 2 --- src/prefixtrie.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prefixtrie.cpp b/src/prefixtrie.cpp index 3a4062bff..b43dd0d6d 100644 --- a/src/prefixtrie.cpp +++ b/src/prefixtrie.cpp @@ -29,7 +29,8 @@ static managed_mapped_file::segment_manager* segmentManager() { fs::remove(file); auto size = (uint64_t)g_memfileSize * 1024ULL * 1024ULL * 1024ULL; - menaged_file.reset(new managed_mapped_file(bip::create_only, file.c_str(), size)); + // using string() to remove w_char filename encoding on Windows + menaged_file.reset(new managed_mapped_file(bip::create_only, file.string().c_str(), size)); } ~CSharedMemoryFile() {