commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r895928 - /commons/sandbox/runtime/trunk/src/main/native/shared/string.c
Date Tue, 05 Jan 2010 07:41:18 GMT
Author: mturk
Date: Tue Jan  5 07:41:17 2010
New Revision: 895928

URL: http://svn.apache.org/viewvc?rev=895928&view=rev
Log:
wcscasecmp is not portable

Modified:
    commons/sandbox/runtime/trunk/src/main/native/shared/string.c

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/string.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/string.c?rev=895928&r1=895927&r2=895928&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/string.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/string.c Tue Jan  5 07:41:17 2010
@@ -1988,8 +1988,14 @@
 
 static int _wcscompare(const void *arg1, const void *arg2)
 {
+#if defined(SOLARIS)
+    /* TODO: Implement wcsecasecmp
+     */
+    return wcscmp(*(wchar_t **)arg1, *(wchar_t **)arg2);
+#else
     /* Compare all of both strings: */
     return wcscasecmp(*(wchar_t **)arg1, *(wchar_t **)arg2);
+#endif
 }
 
 ACR_DECLARE(void) ACR_StrArraySortA(char ***args)



Mime
View raw message