зеркало из https://github.com/mozilla/gecko-dev.git
Fix regression (bug 329518) which made databases created by mozStorage be UTF-16 encoded and caused other havoc. Caused by the landing of the first patch in bug 324311; fixup patch posted to that bug also. r=bryner, a181=bryner
This commit is contained in:
Родитель
950c61cf37
Коммит
1b6b95ac60
|
@ -101,7 +101,7 @@ mozStorageConnection::Initialize(nsIFile *aDatabaseFile)
|
|||
rv = aDatabaseFile->GetPath(path);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
srv = sqlite3_open16 (path.get(), &mDBConn);
|
||||
srv = sqlite3_open (NS_ConvertUTF16toUTF8(path).get(), &mDBConn);
|
||||
} else {
|
||||
// in memory database requested, sqlite uses a magic file name
|
||||
srv = sqlite3_open (":memory:", &mDBConn);
|
||||
|
|
Загрузка…
Ссылка в новой задаче