[cmake-developers] [CMake 0011769]: cmake run commands in Finders with user locale environment set

Mantis Bug Tracker mantis at public.kitware.com
Thu Jan 27 07:34:17 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11769 
====================================================================== 
Reported By:                Tomáš Chvátal
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11769
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-01-27 07:34 EST
Last Modified:              2011-01-27 07:34 EST
====================================================================== 
Summary:                    cmake run commands in Finders with user locale
environment set
Description: 
Cmake executes all commands within the FindFoo.cmake with all evironment set up
by the user thus translations are able to bork up stuff quite easily.

Currently known version of this issue can be observed with bison and language
set to ES.
LC_ALL="C" and LC_ALL="sv_SE.UTF-8" you got "bison (GNU Bison) 2.4.3",
while with spanish you got: "bison (GNU bison) 2.4.2"

Thanks to the change in that Gnu *b*ison the regexp in finder no longer finds
its stuff and explodes (this issue was found by running FindModulesExecuteAll
test :P).

Since this issue might not be only this case it might be safest to run all cmake
commands with environment reseted to C with the LC_ALL variable instead of just
setting the LOCALE=C.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-27 07:34 Tomáš Chvátal  New Issue                                    
======================================================================




More information about the cmake-developers mailing list