From d31b4883a665f962d75e3c96acf47695aa613ed0 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Fri, 20 Jul 2012 14:24:07 +0200 Subject: WINTERMUTE: Disable ansiToWide for now, as the current implementation was wrong. An odd side-effect was that the script-function SetHoverCursor in AdItem would rename it's filenames from "folder\subfolder\filename.ext" to "folder'subfolder'filename.ext" --- engines/wintermute/utils/StringUtil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/wintermute/utils/StringUtil.cpp b/engines/wintermute/utils/StringUtil.cpp index c5ad025939..303e7b1131 100644 --- a/engines/wintermute/utils/StringUtil.cpp +++ b/engines/wintermute/utils/StringUtil.cpp @@ -168,11 +168,11 @@ WideString StringUtil::ansiToWide(const AnsiString &str) { hasWarned = true; warning("StringUtil::AnsiToWide - WideString not supported yet"); } - Common::String converted = ""; + /*Common::String converted = ""; uint32 index = 0; while (index != str.size()) { converted += simpleAnsiToWide(str, index); - } + }*/ // using default os locale! /* setlocale(LC_CTYPE, ""); @@ -182,7 +182,7 @@ WideString StringUtil::ansiToWide(const AnsiString &str) { WideString ResultString(wstr); delete [] wstr; return ResultString;*/ - return WideString(converted); + return WideString(str); } ////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3