Merge branch 'unicode' of git://factorcode.org/git/littledan into unicode

db4
Slava Pestov 2008-03-06 14:47:32 -06:00
commit d95231cc43
2 changed files with 2 additions and 2 deletions

View File

@ -6,6 +6,6 @@ ARTICLE: "io.encodings.utf8" "Working with UTF8-encoded data"
{ $subsection utf8 } ;
HELP: utf8
{ $class-description "This is the class of encoding tuples which denote a UTF-8 encoding. You can pass this class symbol as an encoding descriptor to words like " { $link <file-reader> } " and " { $link encode-string } ". This conforms to the " { $link "encodings-protocol" } "." } ;
{ $class-description "This is the class of encoding tuples which denote a UTF-8 encoding. This conforms to the " { $link "encodings-protocol" } "." } ;
ABOUT: "io.encodings.utf8"

View File

@ -4,7 +4,7 @@ USING: io io.encodings strings kernel math sequences byte-arrays io.encodings ;
IN: io.encodings.ascii
: encode-check<= ( string stream max -- )
[ pick > [ encode-error ] [ stream-write1 ] if ] 2curry each ;
[ pick <= [ encode-error ] [ stream-write1 ] if ] 2curry each ;
TUPLE: ascii ;