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:
parent
0f830b44d3
commit
9b67c5aeec
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user