From b101fbdf0d8b1153f7bea58bc97e773e1016b7cc Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 28 May 2014 12:35:38 -0700 Subject: Use Unicode under windows. --- src/BLua.cc | 8 ++++---- win32/project/Balau.vcxproj | 8 ++++---- win32/project/c-ares.vcxproj | 8 ++++---- win32/project/iconv.vcxproj | 8 ++++---- win32/project/pthreads.vcxproj | 8 ++++---- win32/project/tomcrypt.vcxproj | 8 ++++---- win32/project/tommath.vcxproj | 8 ++++---- win32/project/zlib.vcxproj | 8 ++++---- 8 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/BLua.cc b/src/BLua.cc index fa519a9..b111218 100644 --- a/src/BLua.cc +++ b/src/BLua.cc @@ -173,7 +173,7 @@ int Balau::LuaStatics::getenv(lua_State * __L) { #ifdef _WIN32 #ifdef UNICODE wchar_t wbuffer[BUFSIZ + 1]; - String varStr = L.tostring(1).iconv("UTF-8", "UNICODE"); + String varStr = L.tostring(1).iconv("UTF-8", "UNICODELITTLE"); if (GetEnvironmentVariable((wchar_t *)varStr.to_charp(), wbuffer, BUFSIZ)) { char buffer[BUFSIZ + 1]; const wchar_t * pwbuffer = wbuffer; @@ -215,8 +215,8 @@ int Balau::LuaStatics::setenv(lua_State * __L) { #ifdef _WIN32 #ifdef UNICODE - String varStr = L.tostring(1).iconv("UTF-8", "UNICODE"); - String valStr = L.tostring(2).iconv("UTF-8", "UNICODE"); + String varStr = L.tostring(1).iconv("UTF-8", "UNICODELITTLE"); + String valStr = L.tostring(2).iconv("UTF-8", "UNICODELITTLE"); SetEnvironmentVariable((wchar_t *)varStr.to_charp(), (wchar_t *)valStr.to_charp()); #else SetEnvironmentVariable(L.tostring(1).to_charp(), L.tostring(2).to_charp()); @@ -237,7 +237,7 @@ int Balau::LuaStatics::unsetenv(lua_State * __L) { #ifdef _WIN32 #ifdef UNICODE - String varStr = L.tostring(1).iconv("UTF-8", "UNICODE"); + String varStr = L.tostring(1).iconv("UTF-8", "UNICODELITTLE"); SetEnvironmentVariable((wchar_t *)varStr.to_charp(), NULL); #else SetEnvironmentVariable(L.tostring(1).to_charp(), NULL); diff --git a/win32/project/Balau.vcxproj b/win32/project/Balau.vcxproj index 11bb2b1..bf7a77b 100644 --- a/win32/project/Balau.vcxproj +++ b/win32/project/Balau.vcxproj @@ -27,27 +27,27 @@ StaticLibrary true v120 - MultiByte + Unicode StaticLibrary true v120 - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode diff --git a/win32/project/c-ares.vcxproj b/win32/project/c-ares.vcxproj index eec100f..7fd5ede 100644 --- a/win32/project/c-ares.vcxproj +++ b/win32/project/c-ares.vcxproj @@ -27,27 +27,27 @@ StaticLibrary true v120 - MultiByte + Unicode StaticLibrary true v120 - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode diff --git a/win32/project/iconv.vcxproj b/win32/project/iconv.vcxproj index 8207dc3..0d2e655 100644 --- a/win32/project/iconv.vcxproj +++ b/win32/project/iconv.vcxproj @@ -27,27 +27,27 @@ StaticLibrary true v120 - MultiByte + Unicode StaticLibrary true v120 - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode diff --git a/win32/project/pthreads.vcxproj b/win32/project/pthreads.vcxproj index 4206626..7ea7c3d 100644 --- a/win32/project/pthreads.vcxproj +++ b/win32/project/pthreads.vcxproj @@ -27,27 +27,27 @@ StaticLibrary true v120 - MultiByte + Unicode StaticLibrary true v120 - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode diff --git a/win32/project/tomcrypt.vcxproj b/win32/project/tomcrypt.vcxproj index e342eb7..d748040 100644 --- a/win32/project/tomcrypt.vcxproj +++ b/win32/project/tomcrypt.vcxproj @@ -27,27 +27,27 @@ StaticLibrary true v120 - MultiByte + Unicode StaticLibrary true v120 - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode diff --git a/win32/project/tommath.vcxproj b/win32/project/tommath.vcxproj index c47280d..b935857 100644 --- a/win32/project/tommath.vcxproj +++ b/win32/project/tommath.vcxproj @@ -27,27 +27,27 @@ StaticLibrary true v120 - MultiByte + Unicode StaticLibrary true v120 - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode diff --git a/win32/project/zlib.vcxproj b/win32/project/zlib.vcxproj index 595fc05..b36ea9c 100644 --- a/win32/project/zlib.vcxproj +++ b/win32/project/zlib.vcxproj @@ -27,27 +27,27 @@ StaticLibrary true v120 - MultiByte + Unicode StaticLibrary true v120 - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode StaticLibrary false v120 true - MultiByte + Unicode -- cgit v1.2.3