Kaydet (Commit) 1db42333 authored tarafından Tamás Bunth's avatar Tamás Bunth

tdf#105142 set default charset to UTF8

Change-Id: I47dd18a141949f94903297f6e011e7956587b400
Reviewed-on: https://gerrit.libreoffice.org/33663Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
üst cfdfe1be
......@@ -240,7 +240,7 @@ void Connection::construct(const ::rtl::OUString& url, const Sequence< PropertyV
}
}
char dpbBuffer[1 + 3 + 257 + 257 ]; // Expand as needed
char dpbBuffer[1 + 3 + 257 + 257 + 5 ]; // Expand as needed
int dpbLength = 0;
{
char* dpb;
......@@ -253,6 +253,15 @@ void Connection::construct(const ::rtl::OUString& url, const Sequence< PropertyV
*dpb++ = isc_dpb_sql_dialect;
*dpb++ = 1; // 1 byte long
*dpb++ = FIREBIRD_SQL_DIALECT;
// set UTF8 as default character set
const char sCharset[] = "UTF8";
*dpb++ = isc_dpb_set_db_charset;
int nCharsetLength = sizeof(sCharset) - 1;
*dpb++ = (char) nCharsetLength;
strcpy(dpb, sCharset);
dpb+= nCharsetLength;
// Do any more dpbBuffer additions here
if (m_bIsEmbedded || m_bIsFile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment