summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-06-11 09:34:47 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-06-12 19:15:46 +0200
commit58bb9da339d61981d45cde8e38a2ce1ae33652c4 (patch)
treeb64861bf886d5f5165304bd79395674939804ad9
parentc32952b2393ddd04fb5a00763a9e5e724b991bd7 (diff)
tdf#55631: DBASE import (take 2)
if we can't read head db_frei part, let's also put by default m_eEncoding = RTL_TEXTENCODING_IBM_850; Change-Id: I97601ba4c782dcfc280e975cc4498ea68407dd48 Reviewed-on: https://gerrit.libreoffice.org/38659 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Muthu Subramanian K <muthusuba@gmail.com>
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index 6ba2e9740826..d19a7bfba257 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -283,6 +283,11 @@ void ODbaseTable::readHeader()
break;
}
}
+ else
+ {
+ // Default Encoding
+ m_eEncoding = RTL_TEXTENCODING_IBM_850;
+ }
break;
case dBaseIVMemo:
m_pFileStream->SetEndian(SvStreamEndian::LITTLE);