]> gitweb.factorcode.org Git - factor.git/commitdiff
call utf8 alien>string instead of alien>native-string
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 4 Dec 2008 00:16:17 +0000 (18:16 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 4 Dec 2008 00:16:17 +0000 (18:16 -0600)
basis/io/unix/files/netbsd/netbsd.factor

index c200331db5f76bf0e38c2cf5481a4c1db394c0e6..23717b41a467a819ada468fccfc389774ec9da50 100644 (file)
@@ -4,7 +4,7 @@ USING: alien.syntax kernel unix.stat math unix
 combinators system io.backend accessors alien.c-types
 io.encodings.utf8 alien.strings unix.types io.unix.files
 io.files unix.statvfs.netbsd unix.getfsstat.netbsd
-grouping sequences ;
+grouping sequences io.encodings.utf8 ;
 IN: io.unix.files.netbsd
 
 TUPLE: netbsd-file-system-info < unix-file-system-info
@@ -40,13 +40,13 @@ M: netbsd statvfs>file-system-info ( file-system-info statvfs -- file-system-inf
         [ statvfs-f_namemax >>name-max ]
         [ statvfs-f_owner >>owner ]
         ! [ statvfs-f_spare >>spare ]
-        [ statvfs-f_fstypename alien>native-string >>type ]
-        [ statvfs-f_mntonname alien>native-string >>mount-point ]
-        [ statvfs-f_mntfromname alien>native-string >>device-name ]
+        [ statvfs-f_fstypename utf8 alien>string >>type ]
+        [ statvfs-f_mntonname utf8 alien>string >>mount-point ]
+        [ statvfs-f_mntfromname utf8 alien>string >>device-name ]
     } cleave ;
 
 M: netbsd file-systems ( -- array )
     f 0 0 getvfsstat dup io-error
     "statvfs" <c-array> dup dup length 0 getvfsstat io-error
     "statvfs" heap-size group
-    [ statvfs-f_mntonname alien>native-string file-system-info ] map ;
+    [ statvfs-f_mntonname utf8 alien>string file-system-info ] map ;