diff options
Diffstat (limited to 'idl/source/prj/command.cxx')
-rw-r--r-- | idl/source/prj/command.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/idl/source/prj/command.cxx b/idl/source/prj/command.cxx index f8cf4088b1de..2b5132682724 100644 --- a/idl/source/prj/command.cxx +++ b/idl/source/prj/command.cxx @@ -25,6 +25,7 @@ #include <ctype.h> #include <osl/diagnose.h> +#include <rtl/character.hxx> #include <command.hxx> #include <globals.hxx> @@ -153,10 +154,14 @@ static bool ResponseFile( StringList * pList, int argc, char ** argv ) sal_uInt16 nPos = 1; while( n != nPos ) { - while( aStr[n] && isspace( aStr[n] ) ) + while( aStr[n] + && rtl::isAsciiWhiteSpace( + static_cast<unsigned char>(aStr[n]) ) ) n++; nPos = n; - while( aStr[n] && !isspace( aStr[n] ) ) + while( aStr[n] + && !rtl::isAsciiWhiteSpace( + static_cast<unsigned char>(aStr[n]) ) ) n++; if( n != nPos ) pList->push_back( OStringToOUString(aStr.copy(nPos, n - nPos), RTL_TEXTENCODING_ASCII_US) ); |