Tag: cws_src680_dba202a
User: oj      
Date: 05/11/25 00:30:21

Modified:
 /dba/connectivity/source/commontools/
  CommonTools.cxx

Log:
 #126933# check if char if > 127

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: CommonTools.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/CommonTools.cxx?r1=1.20&r2=1.20.28.1
Delta lines:  +5 -5
-------------------
--- CommonTools.cxx     23 Sep 2005 11:35:55 -0000      1.20
+++ CommonTools.cxx     25 Nov 2005 08:30:18 -0000      1.20.28.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: CommonTools.cxx,v $
  *
- *  $Revision: 1.20 $
+ *  $Revision: 1.20.28.1 $
  *
- *  last change: $Author: hr $ $Date: 2005/09/23 11:35:55 $
+ *  last change: $Author: oj $ $Date: 2005/11/25 08:30:18 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -336,7 +336,7 @@
     // Dieses ist wichtig fuer Tabellennamen beispielsweise
        ::rtl::OString aName(rName,rName.getLength(),RTL_TEXTENCODING_ASCII_US);
        const char* pStr = aName.getStr();
-       if (isdigit(*pStr))
+       if (*pStr > 127 || isdigit(*pStr))
                return sal_False;
 
        for (; *pStr; ++pStr )
@@ -374,7 +374,7 @@
        ::rtl::OUString aNewName(rName);
        const sal_Unicode* pStr = rName.getStr();
        sal_Int32 nLength = rName.getLength();
-       sal_Bool bValid(!isdigit(*pStr));
+       sal_Bool bValid(*pStr < 128 && !isdigit(*pStr));
        for (sal_Int32 i=0; bValid && i < nLength; ++pStr,++i )
                if(!isCharOk(*pStr,_rSpecials))
                {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to