office-gobmx/connectivity/source/inc/odbc
Mike Kaganski e89ad623f4 Assume thread encoding for ODBC status string
OTools::ThrowException uses SQLGetDiagRec to get error message. It's not
the caller's responsibility to define the encoding of resulting string.
Also, using the default setting of RTL_TEXTENCODING_MS_1252 turns
returned localized strings into garbage.

To allow correct conversion into Unicode string, let's use current
thread encoding, and drop the input encoding parameter.

Change-Id: Idb02e3ebb4fc407ce5e658fb2137ea2aa3bc127d
Reviewed-on: https://gerrit.libreoffice.org/44877
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-11-18 09:39:14 +01:00
..
OBoundParam.hxx
OConnection.hxx
ODatabaseMetaData.hxx loplugin:finalclasses in connectivity 2017-11-07 10:35:19 +01:00
ODatabaseMetaDataResultSet.hxx
odbcbasedllapi.hxx
ODriver.hxx
OFunctions.hxx
OPreparedStatement.hxx loplugin:finalclasses in connectivity 2017-11-07 10:35:19 +01:00
OResultSet.hxx
OResultSetMetaData.hxx loplugin:finalclasses in connectivity 2017-11-07 10:35:19 +01:00
OStatement.hxx
OTools.hxx Assume thread encoding for ODBC status string 2017-11-18 09:39:14 +01:00