From 31b8a0e051d2468031846ee594929ac3ced49316 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Mon, 7 Jul 2014 00:50:01 -0500 Subject: [PATCH] libc.windows: We have to use utf8 since this is a libc call and the native encoding on windows is utf16n. --- basis/libc/windows/windows.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basis/libc/windows/windows.factor b/basis/libc/windows/windows.factor index 541cd7b84a..85d25cadd8 100644 --- a/basis/libc/windows/windows.factor +++ b/basis/libc/windows/windows.factor @@ -1,5 +1,5 @@ USING: alien.c-types alien.strings alien.syntax destructors -kernel libc system ; +io.encodings.utf8 kernel libc system ; IN: libc LIBRARY: libc @@ -112,5 +112,5 @@ M: windows strerror ( errno -- str ) [ [ 1024 [ malloc &free ] keep ] dip [ strerror_s drop ] 3keep 2drop - alien>native-string + utf8 alien>string ] with-destructors ;