1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01:00

Bug 2688 - Bad saves with Unicode project filenames

This commit is contained in:
Leland Lucius
2021-03-07 16:27:16 -06:00
parent 0f830b44d3
commit 9b67c5aeec
2 changed files with 3 additions and 3 deletions

View File

@@ -82,12 +82,12 @@ void DBConnection::SetDBError(
printf(" Lib error: %s", mpErrors->mLibraryError.Debug().mb_str().data()); printf(" Lib error: %s", mpErrors->mLibraryError.Debug().mb_str().data());
} }
bool DBConnection::Open(const char *fileName) bool DBConnection::Open(const FilePath fileName)
{ {
wxASSERT(mDB == nullptr); wxASSERT(mDB == nullptr);
int rc; int rc;
rc = sqlite3_open(fileName, &mDB); rc = sqlite3_open(fileName.ToUTF8(), &mDB);
if (rc != SQLITE_OK) if (rc != SQLITE_OK)
{ {
sqlite3_close(mDB); sqlite3_close(mDB);

View File

@@ -46,7 +46,7 @@ public:
CheckpointFailureCallback callback); CheckpointFailureCallback callback);
~DBConnection(); ~DBConnection();
bool Open(const char *fileName); bool Open(const FilePath fileName);
bool Close(); bool Close();
//! throw and show appropriate message box //! throw and show appropriate message box