X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=blobdiff_plain;f=source%2Fobjects%2Fcalendarlist%2FCalendarList.cpp;h=403270cd0a3e109e25fe3e35d89248ab7548753f;hp=514b3e662b08d01fad0882a77ee5a2c40bd9774f;hb=49789773e2797383c866dca470fb99e80cb49e41;hpb=9008088556c3a1de66755bc74b40de09e32e61ff diff --git a/source/objects/calendarlist/CalendarList.cpp b/source/objects/calendarlist/CalendarList.cpp index 514b3e6..403270c 100644 --- a/source/objects/calendarlist/CalendarList.cpp +++ b/source/objects/calendarlist/CalendarList.cpp @@ -1,6 +1,6 @@ // CalendarList.cpp - Account calendar list. // -// (c) 2016 Xestia Software Development. +// (c) 2016-2017 Xestia Software Development. // // This file is part of Xestia Calendar. // @@ -26,7 +26,7 @@ XCAccountCalendarList::XCAccountCalendarList(string calendarListFilename){ wxString calendarListFilenameFull; - calendarListFilenameFull.Append(calendarListFilename); + calendarListFilenameFull.Append(wxString(calendarListFilename.c_str(), wxConvUTF8)); calendarListFilenameFull.Append(wxT("/calendarlist.db")); wxFileConfig *calendarListFile = new wxFileConfig("", "", calendarListFilenameFull); @@ -46,13 +46,13 @@ XCAccountCalendarList::XCAccountCalendarList(string calendarListFilename){ calendarListFile->SetPath(accountName); - calendarShortName.push_back(string(accountName.mb_str())); + calendarShortName.push_back(string(accountName.ToUTF8())); calendarListFile->Read(wxT("name"), &valueData); - calendarName.push_back(string(valueData.mb_str())); + calendarName.push_back(string(valueData.ToUTF8())); calendarListFile->Read(wxT("description"), &valueData); - calendarDescription.push_back(string(valueData.mb_str())); + calendarDescription.push_back(string(valueData.ToUTF8())); calendarListFile->Read(wxT("colour"), &valueData); colourData = string(valueData.mb_str());