Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Win32: implement further UTF8 support
[xestiacalendar/.git] / source / forms / main / frmMain.cpp
index 11246ae..f7e2c1f 100644 (file)
@@ -211,11 +211,11 @@ void frmMain::LoadAccountData(){
        
                // Build the path.
                
-               string calendarListFilename = string(GetUserDir().mb_str());
+               string calendarListFilename = string(GetUserDir().ToUTF8());
                calendarListFilename += "accounts/";
-               calendarListFilename += string(preferences->accounts.GetAccountDirectory(accountSeek).mb_str());
+               calendarListFilename += string(preferences->accounts.GetAccountDirectory(accountSeek).ToUTF8());
                calendarListFilename += ".";
-               calendarListFilename += string(preferences->accounts.GetAccountType(accountSeek).mb_str());
+               calendarListFilename += string(preferences->accounts.GetAccountType(accountSeek).ToUTF8());
                
                // Get the list of calendars.
                
@@ -235,7 +235,7 @@ void frmMain::LoadAccountData(){
                        
                        // Set the calendar ID.
                        
-                       CDSGetCalendarInfo calendarInfo = calendarData.GetCalendar(string(preferences->accounts.GetAccountName(accountSeek).mb_str()), calendarList.calendarShortName[calendarSeek]);
+                       CDSGetCalendarInfo calendarInfo = calendarData.GetCalendar(string(preferences->accounts.GetAccountName(accountSeek).ToUTF8()), calendarList.calendarShortName[calendarSeek]);
                        calendarList.calendarStorageID[calendarSeek] = calendarInfo.calendarID;
                        
                        // Find the entries and load each entry.
@@ -629,7 +629,7 @@ void frmMain::ProcessCalendar( wxCommandEvent& event )
        accountDirectoryPath += "accounts/";
        accountDirectoryPath += string(preferences->accounts.GetAccountDirectory(calendarInfo->accountPreferencesID).ToUTF8());
        accountDirectoryPath += ".";
-       accountDirectoryPath += string(preferences->accounts.GetAccountType(calendarInfo->accountPreferencesID).mb_str());
+       accountDirectoryPath += string(preferences->accounts.GetAccountType(calendarInfo->accountPreferencesID).ToUTF8());
        accountDirectoryPath += "/";
        
        // Generate a UUID for the new calendar.
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy