MantisBT - CMake
View Issue Details
0005492CMakeModulespublic2007-08-14 06:032016-06-06 16:39
ChocoKiller 
Marcel Loose 
normalminoralways
closedfixed 
 
 
0005492: FindSubversion.cmake cannot find the infos on "localized" versions of subversion
When used on systems with not english language, the localized version of subversion could produce a message (with the "svn info" command) into the language of the system (in my case, in french, with fedora 7). The FindSubversion macro use the "svn info" command, in wich for example, the version is found with a regular expression, searching about "revision: " string. In my system, the "svn info" command produce the string "révision: " which clearly does not match the regular expression, and produce wrong result variables.

I suggest to change the "svn info" command and replace it with "svn info --xml" command, which isn't localized. I attach a modified FindSubversion.cmake file wich works with the xml result. I'm not a regex guru, this code seems to be ugly, but it works ... ;) ... feel free to change it.
Fedora 7 in french
FreshRPMs repo
Subversion 1.4.3-4
CMake 2.4.6-4
No tags attached.
related to 0007047closed Brad King FindSubversion.cmake Windows fixes 
? FindSubversion.cmake (7,066) 2007-08-14 06:03
https://public.kitware.com/Bug/file/1108/FindSubversion.cmake
patch cmCTestUpdateHandler.cxx.patch (2,497) 2007-10-23 14:49
https://public.kitware.com/Bug/file/1202/cmCTestUpdateHandler.cxx.patch
Issue History
2007-08-14 06:03ChocoKillerNew Issue
2007-08-14 06:03ChocoKillerFile Added: FindSubversion.cmake
2007-10-23 14:49Félix C. MorencyFile Added: cmCTestUpdateHandler.cxx.patch
2007-10-23 14:50Félix C. MorencyNote Added: 0009535
2007-10-24 10:35Félix C. MorencyNote Added: 0009545
2007-12-17 21:34Bill HoffmanStatusnew => assigned
2007-12-17 21:34Bill HoffmanAssigned To => Bill Hoffman
2011-01-26 11:25David ColeCategory => Modules
2011-01-26 11:25David ColeAssigned ToBill Hoffman => David Cole
2011-01-26 11:25David ColeAssigned ToDavid Cole => Marcel Loose
2011-01-26 17:42Marcel LooseRelationship addedrelated to 0007047
2011-01-26 17:46Marcel LooseNote Added: 0025101
2011-01-26 17:47Marcel LooseStatusassigned => closed
2016-06-06 16:39Brad KingResolutionopen => fixed

Notes
(0009535)
Félix C. Morency   
2007-10-23 14:50   
I patched CTest to support french SVN info. I guess there is still work to do on this but this is a start.
(0009545)
Félix C. Morency   
2007-10-24 10:35   
Please ignore the attached patch and use the LC_MESSAGES SVN env. variable instead to change the SVN output language.
(0025101)
Marcel Loose   
2011-01-26 17:46   
This was already fixed in CMake 2.6 by Brad King in May 2008.