[Libreoffice-commits] core.git: forms/source
Stephan Bergmann
sbergman at redhat.com
Wed Mar 22 20:43:00 UTC 2017
forms/source/component/DatabaseForm.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 93360085da04841fc7f48980acb37a26d6c5a174
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Mar 22 21:42:31 2017 +0100
Use rtl::isAscii* instead of ctype.h is* with sal_Unicode arg
Change-Id: I2bc0cff65b1bacc041106406cd98c632eafeec51
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 40707db7f974..a98e62422f0e 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -901,7 +901,8 @@ void ODatabaseForm::Encode( OUString& rString )
nCharCode = rString[nCurPos];
// Handle chars, which are not an alphanumeric character and character codes > 127
- if( (!isalnum(nCharCode) && nCharCode != ' ') || nCharCode > 127 )
+ if( (!rtl::isAsciiAlphanumeric(nCharCode) && nCharCode != ' ')
+ || nCharCode > 127 )
{
switch( nCharCode )
{
More information about the Libreoffice-commits
mailing list