[Libreoffice-commits] core.git: shell/source

Stephan Bergmann sbergman at redhat.com
Wed Mar 22 20:36:36 UTC 2017


 shell/source/win32/shlxthandler/util/iso8601_converter.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 065a124407ff4262d183e5c8eda98e10df832fbc
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 22 21:35:59 2017 +0100

    Use rtl::isAscii* instead of ctype.h is* with wchar_t arg
    
    Change-Id: I48bee0474fc4fe8be454c1e8819d8f192c9f9216

diff --git a/shell/source/win32/shlxthandler/util/iso8601_converter.cxx b/shell/source/win32/shlxthandler/util/iso8601_converter.cxx
index d8c6ddcf6bad..495ab470b358 100644
--- a/shell/source/win32/shlxthandler/util/iso8601_converter.cxx
+++ b/shell/source/win32/shlxthandler/util/iso8601_converter.cxx
@@ -27,6 +27,7 @@
 #include <sstream>
 #include <iomanip>
 
+#include <rtl/character.hxx>
 
 /* Converts ISO 8601 conform date/time
    represenation to the representation
@@ -120,7 +121,7 @@ std::wstring iso8601_duration_to_local_duration(const std::wstring& iso8601durat
 
     for (/**/; iter != iter_end; ++iter)
     {
-        if (isdigit(*iter))
+        if (rtl::isAsciiDigit(*iter)) // wchar_t is unsigned under MSVC
         {
             num += *iter;
         }


More information about the Libreoffice-commits mailing list