From 60a8a2f6aaef970aada3474909d122dd4e5ade58 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Mon, 14 May 2001 16:47:09 -0400 Subject: [PATCH] Changed separator between registry key and its value. Change regexp for registry key. --- Source/cmSystemTools.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 1c37b4347..8a0bacf65 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -182,7 +182,7 @@ void cmSystemTools::ReplaceString(std::string& source, // Example : // HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath // => will return the data of the "default" value of the key -// HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.4§Root +// HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.4;Root // => will return the data of the "Root" value of the key bool ReadAValue(std::string &res, const char *key) { @@ -196,7 +196,7 @@ bool ReadAValue(std::string &res, const char *key) { return false; } - size_t valuenamepos = primary.find("§"); + size_t valuenamepos = primary.find(";"); if (valuenamepos != std::string::npos) { valuename = primary.substr(valuenamepos+1); @@ -256,7 +256,7 @@ bool ReadAValue(std::string &res, const char *key) void cmSystemTools::ExpandRegistryValues(std::string& source) { #if _WIN32 - cmRegularExpression regEntry("\\[(HKEY.*)\\]"); + cmRegularExpression regEntry("\\[(HKEY[A-Za-z0-9_~\\:\\-\\(\\)\\.]*)\\]"); // check for black line or comment while (regEntry.find(source))