idl/source/prj/command.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
New commits: commit a2201cba9f22c8aff57fb59cb57aa4e09ec5e555 Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Mar 23 07:15:42 2017 +0100 Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char) Change-Id: Ic0e1c7f4e0899fd976a00b5ea8ba8b130657bac9 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) ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits