diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-03-05 13:56:59 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-03-05 17:44:17 +0100 |
commit | 5ad62544bce42396faaae2bc79c7517af6ff085b (patch) | |
tree | 99ccee684fa101848d936c8dedd896ee730811cb /offapi/com | |
parent | 65e98e66fe04941bddd23d94801a1646119cdc2f (diff) |
tdf#116171: Tunnel arbitrary rtl_TextEncoding from sc to sdbc:dbase connection
...including those that have no corresponding textual IANA character set name
representation, like RTL_TEXTENCODING_MS_950 which is apparently used in some
DBase files.
In the past, if eCharSet was RTL_TEXTENCODING_DONTKNOW in lcl_getDBaseConnection
it was sent as an empty string CharSet property, which the receiving
OConnection::construct translated back to
else
m_nTextEncoding = RTL_TEXTENCODING_DONTKNOW;
so the net effect remains the same for that special case.
Change-Id: I84eec8a93d000752b3c429976c58721ea9ea32a4
Reviewed-on: https://gerrit.libreoffice.org/50772
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'offapi/com')
-rw-r--r-- | offapi/com/sun/star/sdbc/FILEConnectionProperties.idl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/offapi/com/sun/star/sdbc/FILEConnectionProperties.idl b/offapi/com/sun/star/sdbc/FILEConnectionProperties.idl index 1e1f36efc8e1..43c6d4c74740 100644 --- a/offapi/com/sun/star/sdbc/FILEConnectionProperties.idl +++ b/offapi/com/sun/star/sdbc/FILEConnectionProperties.idl @@ -45,6 +45,10 @@ service FILEConnectionProperties <p>See the <a href="http://www.iana.org/assignments/character-sets">IANA character set list</a> for a list of valid values.</p> + + <p>For internal purposes (e.g., when using an encoding for which no IANA character set name + exists), this may also be an UNSIGNED SHORT value representing one of the rtl_TextEncoding + values in rtl/textenc.h.</p> */ [optional, property] string CharSet; }; |