harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r549149 - /harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c
Date Wed, 20 Jun 2007 16:24:58 GMT
Author: gshimansky
Date: Wed Jun 20 09:24:57 2007
New Revision: 549149

URL: http://svn.apache.org/viewvc?view=rev&rev=549149
Log:
Applied patch from HARMONY-3251
[jdktools][samsa] jdk\bin\java without extension throws NoClassDefFoundError


Modified:
    harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c

Modified: harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c?view=diff&rev=549149&r1=549148&r2=549149
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c (original)
+++ harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c Wed Jun 20
09:24:57 2007
@@ -312,8 +312,11 @@
         temp = strdup(name);
     }
     
-    exe = strstr(temp, ".exe");
-         
+    // convert name to lower case on Windows
+    _strlwr(temp);
+
+    // remove possible '.exe' suffix
+	exe = strstr(temp, ".exe");
     if (exe) { 
        *exe = '\0';
     }



Mime
View raw message