1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02: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());
}
bool DBConnection::Open(const char *fileName)
bool DBConnection::Open(const FilePath fileName)
{
wxASSERT(mDB == nullptr);
int rc;
rc = sqlite3_open(fileName, &mDB);
rc = sqlite3_open(fileName.ToUTF8(), &mDB);
if (rc != SQLITE_OK)
{
sqlite3_close(mDB);

View File

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