From 123b0284d5af09b31a362d650c7d9798f0eeb3dc Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 25 May 2013 15:44:43 +0000 Subject: - fixed escaping minus sign (patch by $sergi0) - added gismeteo and msn ini files (patch by $sergi0) git-svn-id: http://svn.miranda-ng.org/main/trunk@4819 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/src/weather_data.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/Weather/src') diff --git a/plugins/Weather/src/weather_data.cpp b/plugins/Weather/src/weather_data.cpp index bcf0e22139..935cf33dfd 100644 --- a/plugins/Weather/src/weather_data.cpp +++ b/plugins/Weather/src/weather_data.cpp @@ -309,7 +309,16 @@ void GetDataValue(WIDATAITEM *UpdateData, TCHAR *Data, TCHAR** szData) else if (szInfo[startloc] == '&' && (szInfo[startloc+1] == ';' || szInfo[startloc+2] == ';' || szInfo[startloc+3] == ';' || szInfo[startloc+4] == ';' || szInfo[startloc+5] == ';' || szInfo[startloc+6] == ';')) + { + // ...but do NOT strip − + if ((endloc - startloc) > 7 &&_tcsncmp(szInfo + startloc, _T("−"), 7) == 0) + { + Data[respos++] = '-'; + startloc += 7; + continue; + } symb = TRUE; + } else if (szInfo[startloc] == '>') tag = FALSE; else if (szInfo[startloc] == ';') symb = FALSE; else { -- cgit v1.2.3