diff -r a2e65c705db8 -r 63964d875993 configurationengine/source/plugins/symbian/ConeProjectConverterPlugin/projectconvertplugin/convertproject.py --- a/configurationengine/source/plugins/symbian/ConeProjectConverterPlugin/projectconvertplugin/convertproject.py Tue Oct 26 10:43:50 2010 +0100 +++ b/configurationengine/source/plugins/symbian/ConeProjectConverterPlugin/projectconvertplugin/convertproject.py Sat Nov 06 16:59:14 2010 +0200 @@ -698,11 +698,14 @@ """ """ retStr = data - if not mapping: mapping = {} + if not mapping: mapping = {} if data != None: - merged = dict(mapping.items() + self._get_env_variables().items()) + merged = dict(mapping.items() + self._get_env_variables().items()) for key in merged.keys(): - retStr = retStr.replace(key, merged[key]) + # Do a case-insensitive replace so that things work + # both in Linux and Windows + pattern = re.compile(re.escape(key), re.IGNORECASE) + retStr = re.sub(pattern, lambda m: merged[key], retStr) return retStr