Browse Source

also fid misc tests on Windows

Simon Krajewski 9 years ago
parent
commit
ecedd0737c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/misc/src/Main.hx

+ 2 - 1
tests/misc/src/Main.hx

@@ -66,7 +66,8 @@ class Main {
 	static function normPath(resolve, p:String, properCase = false):String {
 		if (Sys.systemName() == "Windows")
 		{
-			// on windows, haxe returns lowercase paths with backslashes
+			// on windows, haxe returns lowercase paths with backslashes, drive letter uppercased
+			p = p.substr(0, 1).toUpperCase() + p.substr(1);
 			p = p.replace("/", "\\");
 			if (!properCase)
 				p = p.toLowerCase();