From ad7b4cec01bcfd8b2b6284e9d8ba190203c4ce6d Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 27 Jan 2009 04:29:44 -0600 Subject: [PATCH] Revert Windows console encoding since the DOS prompt is not really cp1252 --- basis/io/backend/windows/windows.factor | 8 +++----- core/io/backend/backend.factor | 10 +++------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/basis/io/backend/windows/windows.factor b/basis/io/backend/windows/windows.factor index bf01f1d621..6ecbc49f2a 100755 --- a/basis/io/backend/windows/windows.factor +++ b/basis/io/backend/windows/windows.factor @@ -1,7 +1,7 @@ ! Copyright (C) 2004, 2008 Mackenzie Straight, Doug Coleman. ! See http://factorcode.org/license.txt for BSD license. -USING: alien alien.c-types arrays destructors io io.backend io.buffers -io.files io.ports io.binary io.timeouts io.encodings.8-bit +USING: alien alien.c-types arrays destructors io io.backend +io.buffers io.files io.ports io.binary io.timeouts windows.errors strings kernel math namespaces sequences windows windows.kernel32 windows.shell32 windows.types windows.winsock splitting continuations math.bitwise system accessors ; @@ -51,6 +51,4 @@ HOOK: add-completion io-backend ( port -- ) : default-security-attributes ( -- obj ) "SECURITY_ATTRIBUTES" "SECURITY_ATTRIBUTES" heap-size - over set-SECURITY_ATTRIBUTES-nLength ; - -M: windows console-encoding windows-1252 ; \ No newline at end of file + over set-SECURITY_ATTRIBUTES-nLength ; \ No newline at end of file diff --git a/core/io/backend/backend.factor b/core/io/backend/backend.factor index dc22c7a975..322a603144 100644 --- a/core/io/backend/backend.factor +++ b/core/io/backend/backend.factor @@ -14,15 +14,11 @@ HOOK: init-io io-backend ( -- ) HOOK: (init-stdio) io-backend ( -- stdin stdout stderr ) -HOOK: console-encoding os ( -- encoding ) - -M: object console-encoding utf8 ; - : init-stdio ( -- ) (init-stdio) - [ console-encoding input-stream set-global ] - [ console-encoding output-stream set-global ] - [ console-encoding error-stream set-global ] tri* ; + [ utf8 input-stream set-global ] + [ utf8 output-stream set-global ] + [ utf8 error-stream set-global ] tri* ; HOOK: io-multiplex io-backend ( us -- ) -- 2.11.4.GIT