diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-12-21 12:16:52 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-12-21 12:16:52 +0000 |
commit | 98b68765cfe83444fbba9c789c2b0bd03591f48b (patch) | |
tree | da39f428c43fee38b5d14004cf07443793f7ca43 /connectivity/source/drivers/flat | |
parent | ec9b8756b69d59ed1f65a58133a00dcd50fb6c07 (diff) |
INTEGRATION: CWS dba202a (1.50.18); FILE MERGED
2005/11/25 08:32:08 oj 1.50.18.1: #126933# check if char if > 127
Diffstat (limited to 'connectivity/source/drivers/flat')
-rw-r--r-- | connectivity/source/drivers/flat/ETable.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx index f3435066480c..25c530910b1a 100644 --- a/connectivity/source/drivers/flat/ETable.cxx +++ b/connectivity/source/drivers/flat/ETable.cxx @@ -4,9 +4,9 @@ * * $RCSfile: ETable.cxx,v $ * - * $Revision: 1.50 $ + * $Revision: 1.51 $ * - * last change: $Author: hr $ $Date: 2005-10-13 17:08:58 $ + * last change: $Author: obo $ $Date: 2005-12-21 13:16:52 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -122,7 +122,7 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::lang; // ------------------------------------------------------------------------- -void OFlatTable::fillColumns() +void OFlatTable::fillColumns(const ::com::sun::star::lang::Locale& _aLocale) { BOOL bRead = TRUE; @@ -168,6 +168,7 @@ void OFlatTable::fillColumns() m_aScales.reserve(nFieldCount); sal_Bool bCase = getConnection()->getMetaData()->storesMixedCaseQuotedIdentifiers(); + CharClass aCharClass(pConnection->getDriver()->getFactory(),_aLocale); // read description sal_Unicode cDecimalDelimiter = pConnection->getDecimalDelimiter(); sal_Unicode cThousandDelimiter = pConnection->getThousandDelimiter(); @@ -233,7 +234,7 @@ void OFlatTable::fillColumns() // nur Ziffern und Dezimalpunkt und Tausender-Trennzeichen? if ((!cDecimalDelimiter || c != cDecimalDelimiter) && (!cThousandDelimiter || c != cThousandDelimiter) && - !isdigit(c)) + !aCharClass.isDigit(aField2,j)) { bNumeric = FALSE; break; @@ -415,7 +416,7 @@ void OFlatTable::construct() nSize > 100000 ? 16384 : nSize > 10000 ? 4096 : 1024); - fillColumns(); + fillColumns(aAppLocale); refreshColumns(); } |