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.
This commit is contained in:
parent
730e386291
commit
c746b00eee
|
@ -101,7 +101,7 @@ int cpackDefinitionArgument(const char* argument, const char* cValue,
|
|||
// this is CPack.
|
||||
int main (int argc, char const* const* argv)
|
||||
{
|
||||
setlocale(LC_ALL, "");
|
||||
setlocale(LC_CTYPE, "");
|
||||
cmsys::Encoding::CommandLineArguments args =
|
||||
cmsys::Encoding::CommandLineArguments::Main(argc, argv);
|
||||
argc = args.argc();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -163,7 +163,7 @@ static void cmakemainProgressCallback(const char *m, float prog,
|
|||
|
||||
int main(int ac, char const* const* av)
|
||||
{
|
||||
setlocale(LC_ALL, "");
|
||||
setlocale(LC_CTYPE, "");
|
||||
cmsys::Encoding::CommandLineArguments args =
|
||||
cmsys::Encoding::CommandLineArguments::Main(ac, av);
|
||||
ac = args.argc();
|
||||
|
|
|
@ -115,7 +115,7 @@ static const char * cmDocumentationOptions[][2] =
|
|||
// this is a test driver program for cmCTest.
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue