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:
dmose%mozilla.org 2006-03-07 03:48:34 +00:00
Родитель 950c61cf37
Коммит 1b6b95ac60
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);