2
0
Эх сурвалжийг харах

fixed System.lang on Linux/OSX

ncannasse 6 жил өмнө
parent
commit
39fd67925d
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      hxd/System.hl.hx

+ 1 - 1
hxd/System.hl.hx

@@ -287,7 +287,7 @@ class System {
 	static var _lang : String;
 	static function get_lang() : String {
 		if( _lang == null ) {
-			var str = @:privateAccess String.fromUCS2(getLocale());
+			var str = @:privateAccess Sys.makePath(getLocale());
 			_lang = ~/[.@_-]/g.split(str)[0];
 		}
 		return _lang;