From: Fredrik Tolf Date: Thu, 11 Mar 2010 20:05:25 +0000 (+0100) Subject: Added keyword synonyms for the current codecs. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=f8eaaa29f361170fd67519525a45cb21dd258691;p=lisp-utils.git Added keyword synonyms for the current codecs. --- diff --git a/charcode.lisp b/charcode.lisp index 6c08f42..dfe5a19 100644 --- a/charcode.lisp +++ b/charcode.lisp @@ -241,6 +241,8 @@ (define-encoder (ascii) #'encode-ascii) +(define-codec-synonyms ascii :ascii) + ;;; Latin-1 (defun decode-latin-1 (byteseq charseq &key (start 0) (end (length byteseq))) @@ -278,7 +280,7 @@ (define-encoder (latin-1) #'encode-latin-1) -(define-codec-synonyms latin-1 latin1 iso-8859-1) +(define-codec-synonyms latin-1 latin1 iso-8859-1 :latin-1 :latin1 :iso-8859-1) ;;; UTF-8 @@ -362,4 +364,4 @@ (setf mlen 0)))))))) #'decode))) -(define-codec-synonyms utf-8 utf8) +(define-codec-synonyms utf-8 utf8 :utf-8 :utf8)