Diff for /gforth/utf-8.fs between versions 1.29 and 1.33

version 1.29, 2007/09/15 20:11:44 version 1.33, 2007/12/31 17:34:58
Line 1 Line 1
 \ UTF-8 handling                                       12dec04py  \ UTF-8 handling                                       12dec04py
   
 \ Copyright (C) 2004,2005,2006 Free Software Foundation, Inc.  \ Copyright (C) 2004,2005,2006,2007 Free Software Foundation, Inc.
   
 \ This file is part of Gforth.  \ This file is part of Gforth.
   
Line 293  here wc-table - Constant #wc-table Line 293  here wc-table - Constant #wc-table
     ['] u8\string- is xstring-      ['] u8\string- is xstring-
     ['] +u8/string is +xstring      ['] +u8/string is +xstring
 [ [THEN] ]  [ [THEN] ]
 [ [IFDEF] x/string+ ]  [ [IFDEF] +x/string ]
     ['] u8\string- is x\string-      ['] u8\string- is x\string-
     ['] +u8/string is +x/string      ['] +u8/string is +x/string
 [ [THEN] ]  [ [THEN] ]
Line 318  here wc-table - Constant #wc-table Line 318  here wc-table - Constant #wc-table
     s" UTF-8" search nip nip      s" UTF-8" search nip nip
     IF  set-encoding-utf-8  ELSE  set-encoding-fixed-width  THEN ;      IF  set-encoding-utf-8  ELSE  set-encoding-fixed-width  THEN ;
   
   environment-wordlist set-current
   : xchar-encoding ( -- addr u ) \ xchar-ext
       \G Returns a printable ASCII string that reperesents the encoding,
       \G and use the preferred MIME name (if any) or the name in
       \G @url{http://www.iana.org/assignments/character-sets} like
       \G ``ISO-LATIN-1'' or ``UTF-8'', with the exception of ``ASCII'', where
       \G we prefer the alias ``ASCII''.
       max-single-byte $80 = IF s" UTF-8" ELSE s" ISO-LATIN-1" THEN ;
   forth definitions
   
 :noname ( -- )  :noname ( -- )
     defers 'cold      defers 'cold
     utf-8-cold      utf-8-cold

Removed from v.1.29  
changed lines
  Added in v.1.33


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>