diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-01-14 17:19:20 -0500 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-01-14 17:19:20 -0500 |
commit | 4bcce925ea8279cd7c8e770c77142878870c3527 (patch) | |
tree | ed753a62b944f68c38f7a4010da785132e461d9c /Modules/FindSubversion.cmake | |
parent | f8f232bdd88ee71e008d79c4a50c986407c23a1d (diff) | |
download | cmake-4bcce925ea8279cd7c8e770c77142878870c3527.tar.gz |
BUG: set LC_ALL to C, so message from svn are not translated, which can lead
to problems (since the output is parsed, which fails then)
Brad, Bill, can you think of any reasons this change might create problems ?
Alex
Diffstat (limited to 'Modules/FindSubversion.cmake')
-rw-r--r-- | Modules/FindSubversion.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/FindSubversion.cmake b/Modules/FindSubversion.cmake index a34807fb59..a4c4692c0e 100644 --- a/Modules/FindSubversion.cmake +++ b/Modules/FindSubversion.cmake @@ -52,6 +52,11 @@ SET(Subversion_FOUND FALSE) SET(Subversion_SVN_FOUND FALSE) +# the subversion commands should be executed with the C locale, otherwise +# the message (which are parsed) may be translated, Alex +SET(_Subversion_SAVED_LC_ALL "$ENV{LC_ALL}" ) +SET(ENV{LC_ALL} C) + FIND_PROGRAM(Subversion_SVN_EXECUTABLE svn DOC "subversion command line client") MARK_AS_ADVANCED(Subversion_SVN_EXECUTABLE) @@ -105,6 +110,9 @@ IF(Subversion_SVN_EXECUTABLE) ENDIF(Subversion_SVN_EXECUTABLE) +# restore the previous LC_ALL +SET(ENV{LC_ALL} ${_Subversion_SAVED_LC_ALL}) + IF(NOT Subversion_FOUND) IF(NOT Subversion_FIND_QUIETLY) MESSAGE(STATUS "Subversion was not found.") |