summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rsc/source/parser/rsclex.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx
index cbe2f0eded4d..e03aa09444d5 100644
--- a/rsc/source/parser/rsclex.cxx
+++ b/rsc/source/parser/rsclex.cxx
@@ -223,7 +223,8 @@ int MakeToken( YYSTYPE * pTokenVal )
Atom nHashId;
OStringBuffer aBuf( 256 );
- while( isalnum (c) || (c == '_') || (c == '-') || (c == ':'))
+ while( rtl::isAsciiAlphanumeric (static_cast<unsigned char>(c))
+ || (c == '_') || (c == '-') || (c == ':'))
{
aBuf.append( sal_Char(c) );
c = pFI->GetFastChar();