- FIXED: inconsistent numerical value via DynamicVariables (issue 130)

- FIXED: Problem with WebParser and "local files" with Cyrillic chars in the path. (issue 139)
- The coded character set of the logfile is changed to UTF-8. (ccs=UTF-8)
  http://msdn.microsoft.com/en-us/library/yeby3zcb%28VS.80%29.aspx
- "MS Shell Dlg 2" is now used for the ABOUT dialog box.
  http://support.microsoft.com/kb/282187
This commit is contained in:
spx
2010-02-03 08:01:50 +00:00
parent d033137f72
commit ee8d4867c2
5 changed files with 73 additions and 24 deletions

View File

@ -503,7 +503,7 @@ const std::wstring& CConfigParser::ReadString(LPCTSTR section, LPCTSTR key, LPCT
std::map<std::wstring, CMeasure*>::iterator iter = m_Measures.find(var);
if (iter != m_Measures.end())
{
std::wstring value = (*iter).second->GetStringValue(true, 1, 5, false);
std::wstring value = (*iter).second->GetStringValue(false, 1, 5, false);
// Measure found, replace it with the value
result.replace(result.begin() + pos, result.begin() + end + 1, value);

View File

@ -155,7 +155,7 @@ END
IDD_ABOUT_DIALOG DIALOG DISCARDABLE 0, 0, 234, 225
STYLE DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "Rainmeter"
FONT 8, "MS Sans Serif"
FONT 8, "MS Shell Dlg 2"
BEGIN
CONTROL "List1",IDC_STATISTICS,"SysListView32",LVS_REPORT |
LVS_SINGLESEL | LVS_NOSORTHEADER | WS_BORDER |

View File

@ -551,7 +551,6 @@ BOOL LSLog(int nLevel, LPCTSTR pszModule, LPCTSTR pszMessage)
// Clear the file
logFile = _wfopen(logfile.c_str(), L"w");
fputwc(0xFEFF, logFile);
fclose(logFile);
}
else
@ -562,7 +561,7 @@ BOOL LSLog(int nLevel, LPCTSTR pszModule, LPCTSTR pszMessage)
if (logFound == 1)
{
logFile = _wfopen(logfile.c_str(), L"a+");
logFile = _wfopen(logfile.c_str(), L"a+, ccs=UTF-8");
if (logFile)
{
switch(nLevel)

View File

@ -35,7 +35,6 @@
#include <Iphlpapi.h>
#include <commctrl.h>
#include <shellapi.h>
#include <algorithm>
#include <Mmsystem.h>
#include <tchar.h>
#include <shlobj.h>
@ -55,6 +54,7 @@
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <algorithm>
// RUNTIME
#include <stdio.h>