diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-29 16:45:32 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-29 16:45:32 -0800 |
| commit | 7097f27cadf45d4b891396cb6bc24eddba3dd698 (patch) | |
| tree | 2a839cb3ba1969ded0d87eb2aa9495c96852e0e7 /ports/libiconv/0003-Fix-uwp.patch | |
| parent | c0564b6111a14f54e94ad64892ab40f9adb4a1b6 (diff) | |
| parent | cb0d9e70a5f1bd88eb3e6c946ae3808518b8dac3 (diff) | |
| download | vcpkg-7097f27cadf45d4b891396cb6bc24eddba3dd698.tar.gz vcpkg-7097f27cadf45d4b891396cb6bc24eddba3dd698.zip | |
Merge branch 'master' of https://github.com/Microsoft/vcpkg
Diffstat (limited to 'ports/libiconv/0003-Fix-uwp.patch')
| -rw-r--r-- | ports/libiconv/0003-Fix-uwp.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ports/libiconv/0003-Fix-uwp.patch b/ports/libiconv/0003-Fix-uwp.patch new file mode 100644 index 000000000..0b2444166 --- /dev/null +++ b/ports/libiconv/0003-Fix-uwp.patch @@ -0,0 +1,25 @@ +diff --git a/libcharset/lib/localcharset.c b/libcharset/lib/localcharset.c +index 3aceb42..dadd95a 100644 +--- a/libcharset/lib/localcharset.c ++++ b/libcharset/lib/localcharset.c +@@ -455,7 +455,10 @@ locale_charset (void) + # endif + + #elif defined WIN32_NATIVE +- ++#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP) ++ // GetACP() not available to UWP apps ++ codeset = NULL; ++#else + static char buf[2 + 10 + 1]; + + /* Woe32 has a function returning the locale's codepage as a number: +@@ -467,7 +470,7 @@ locale_charset (void) + encoding is the best bet. */ + sprintf (buf, "CP%u", GetACP ()); + codeset = buf; +- ++#endif + #elif defined OS2 + + const char *locale; |
