Nicolas Cannasse před 9 roky
rodič
revize
28a4e7a287
2 změnil soubory, kde provedl 5 přidání a 9 odebrání
  1. 0 5
      std/hl/_std/Date.hx
  2. 5 4
      std/hl/_std/Sys.hx

+ 0 - 5
std/hl/_std/Date.hx

@@ -134,11 +134,6 @@ import hl.types.Ref;
 	static function date_get_inf( t : Int, year : Ref<Int>, month : Ref<Int>, day : Ref<Int>, hours : Ref<Int>, minutes : Ref<Int>, seconds : Ref<Int>, wday : Ref<Int> ) : Void {
 	}
 
-	@:hlNative
-	static function date_get_weekday( t : Int ) : Int {
-		return 0;
-	}
-
 	@:hlNative
 	static function date_to_string( t : Int, outLen : Ref<Int> ) : hl.types.Bytes {
 		return null;

+ 5 - 4
std/hl/_std/Sys.hx

@@ -54,11 +54,11 @@ class Sys {
 		var v = get_env(s.bytes);
 		if( v == null )
 			return null;
-		return String.fromUCS2(v);
+		return makePath(v);
 	}
 
 	public static function putEnv( s : String, v : String ) : Void {
-		put_env(s.bytes,if( v == null ) null else v.bytes);
+		put_env(getPath(s),if( v == null ) null else getPath(v));
 	}
 
 	public static function environment() : Map<String,String> {
@@ -66,7 +66,7 @@ class Sys {
 		var h = new haxe.ds.StringMap();
 		for( i in 0...env.length >> 1 ) {
 			var p = i << 1;
-			h.set(String.fromUCS2(env[p]), String.fromUCS2(env[p + 1]));
+			h.set(makePath(env[p]), makePath(env[p + 1]));
 		}
 		return h;
 	}
@@ -76,7 +76,8 @@ class Sys {
 	}
 
 	public static function setTimeLocale( loc : String ) : Bool {
-		return set_time_locale(loc.bytes);
+		var size = 0;
+		return set_time_locale(loc.bytes.utf16ToUtf8(0,size));
 	}
 
 	public static function getCwd() : String {