Do string compares with the Invariant culture.
[mono.git] / mcs / class / corlib / System.IO / Path.cs
index 5bc89171674b5640a425b4a93ef0ff11f87853af..1e426e9833f52c59dab28d24c0b7c4beadc3ac3d 100644 (file)
@@ -267,7 +267,7 @@ namespace System.IO
                        // method should return the index of the path extension
                        // start or -1 if no valid extension
                        if (path != null){
-                               int iLastDot = path.LastIndexOf (".");
+                               int iLastDot = path.LastIndexOf ('.');
                                int iLastSep = path.LastIndexOfAny ( PathSeparatorChars );
 
                                if (iLastDot > iLastSep)