aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libkml/patch_empty_literal_on_vc.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libkml/patch_empty_literal_on_vc.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libkml/patch_empty_literal_on_vc.patch')
-rw-r--r--vcpkg/ports/libkml/patch_empty_literal_on_vc.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/libkml/patch_empty_literal_on_vc.patch b/vcpkg/ports/libkml/patch_empty_literal_on_vc.patch
new file mode 100644
index 0000000..8a3581a
--- /dev/null
+++ b/vcpkg/ports/libkml/patch_empty_literal_on_vc.patch
@@ -0,0 +1,13 @@
+diff --git a/src/kml/base/file_win32.cc b/src/kml/base/file_win32.cc
+index c46e099..28ccb36 100644
+--- a/src/kml/base/file_win32.cc
++++ b/src/kml/base/file_win32.cc
+@@ -42,7 +42,7 @@ namespace kmlbase {
+ // Internal to the win32 file class. We need a conversion from string to
+ // LPCWSTR.
+ static std::wstring Str2Wstr(const string& str) {
+- std::wstring wstr(str.length(), L'');
++ std::wstring wstr(str.length(), L' ');
+ std::copy(str.begin(), str.end(), wstr.begin());
+ return wstr;
+ }