summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2014-06-12 04:27:39 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2014-06-12 04:29:16 (GMT)
commitc746b00eee09a48f6a180bf4955a7b90496f12f3 (patch)
treeab98f662837ce0d7183097f8835ed00e5991877c /Source/CursesDialog
parent730e386291cb7aad8f532125216b2ec71d710748 (diff)
downloadCMake-c746b00eee09a48f6a180bf4955a7b90496f12f3.zip
CMake-c746b00eee09a48f6a180bf4955a7b90496f12f3.tar.gz
CMake-c746b00eee09a48f6a180bf4955a7b90496f12f3.tar.bz2
Encoding: Change to only set LC_CTYPE to fix encoding issues with libarchive.
Changing all categories with LC_ALL causes test failures in some locales. For example, in some locales, the decimal characer could be a comma instead of period.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/ccmake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index a9d4d98..54f2151 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -83,7 +83,7 @@ void CMakeMessageHandler(const char* message, const char* title, bool&,
int main(int argc, char const* const* argv)
{
- setlocale(LC_ALL, "");
+ setlocale(LC_CTYPE, "");
cmsys::Encoding::CommandLineArguments encoding_args =
cmsys::Encoding::CommandLineArguments::Main(argc, argv);