]> gitweb.factorcode.org Git - factor.git/commitdiff
io.files: command line params is in the system's native encoding
authorBjörn Lindqvist <bjourne@gmail.com>
Sat, 22 Aug 2015 16:22:28 +0000 (18:22 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 24 Aug 2015 14:23:40 +0000 (07:23 -0700)
core/io/files/files.factor

index da758adeef9739036a63680096e3b3890155ffdc..f2a212a40371a1bc94816e9cc3a16c0662d78728 100644 (file)
@@ -85,8 +85,9 @@ M: object cwd ( -- path ) "." ;
 PRIVATE>
 
 : init-resource-path ( -- )
-    OBJ-ARGS special-object
-    [ utf8 alien>string "-resource-path=" ?head [ drop f ] unless ] map-find drop
+    OBJ-ARGS special-object [
+        alien>native-string "-resource-path=" ?head [ drop f ] unless
+    ] map-find drop
     [ image-path parent-directory ] unless* "resource-path" set-global ;
 
 [