diff --git a/patches/ShowLocale/.gitignore b/patches/ShowLocale/.gitignore new file mode 100644 index 0000000..f14f1bf --- /dev/null +++ b/patches/ShowLocale/.gitignore @@ -0,0 +1,9 @@ +Debug/ +Release/ +ShowLocale/Debug/ +ShowLocale/Release/ +*.opensdf +*.sdf +*.suo +*.user +*.aps \ No newline at end of file diff --git a/patches/ShowLocale/ShowLocale.sln b/patches/ShowLocale/ShowLocale.sln new file mode 100644 index 0000000..8d42978 --- /dev/null +++ b/patches/ShowLocale/ShowLocale.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ShowLocale", "ShowLocale\ShowLocale.vcxproj", "{CB9CBBE4-F3B1-437F-850D-740294BAFB4B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CB9CBBE4-F3B1-437F-850D-740294BAFB4B}.Debug|Win32.ActiveCfg = Debug|Win32 + {CB9CBBE4-F3B1-437F-850D-740294BAFB4B}.Debug|Win32.Build.0 = Debug|Win32 + {CB9CBBE4-F3B1-437F-850D-740294BAFB4B}.Release|Win32.ActiveCfg = Release|Win32 + {CB9CBBE4-F3B1-437F-850D-740294BAFB4B}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/patches/ShowLocale/ShowLocale/Resource.rc b/patches/ShowLocale/ShowLocale/Resource.rc new file mode 100644 index 0000000..32bd36d Binary files /dev/null and b/patches/ShowLocale/ShowLocale/Resource.rc differ diff --git a/patches/ShowLocale/ShowLocale/ShowLocale.vcxproj b/patches/ShowLocale/ShowLocale/ShowLocale.vcxproj new file mode 100644 index 0000000..3a65b0a --- /dev/null +++ b/patches/ShowLocale/ShowLocale/ShowLocale.vcxproj @@ -0,0 +1,96 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {CB9CBBE4-F3B1-437F-850D-740294BAFB4B} + Win32Proj + ShowLocale + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + MultiThreaded + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/patches/ShowLocale/ShowLocale/ShowLocale.vcxproj.filters b/patches/ShowLocale/ShowLocale/ShowLocale.vcxproj.filters new file mode 100644 index 0000000..b258f9b --- /dev/null +++ b/patches/ShowLocale/ShowLocale/ShowLocale.vcxproj.filters @@ -0,0 +1,37 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + + + Resource Files + + + + + Header Files + + + + + Resource Files + + + \ No newline at end of file diff --git a/patches/ShowLocale/ShowLocale/resource.h b/patches/ShowLocale/ShowLocale/resource.h new file mode 100644 index 0000000..661a5ba Binary files /dev/null and b/patches/ShowLocale/ShowLocale/resource.h differ diff --git a/patches/ShowLocale/ShowLocale/showlocale.c b/patches/ShowLocale/ShowLocale/showlocale.c new file mode 100644 index 0000000..2183490 --- /dev/null +++ b/patches/ShowLocale/ShowLocale/showlocale.c @@ -0,0 +1,13 @@ +#include +#include +#include + +int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrev, LPWSTR cmd, int nCmdShow) { + //char lang[MAX_PATH]; + setlocale(LC_ALL, ""); + //(void)localeconv(); + //GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_SNAME, lang, MAX_PATH); + //MessageBoxA(NULL, lang, "LC_ALL1", MB_OK); + MessageBox(NULL, _wsetlocale(LC_CTYPE, NULL), L"LC_ALL", MB_OK); + return 0; +} \ No newline at end of file