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:
@@ -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);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user