Add support for external-format in flexi-streams variant.

This commit is contained in:
2015-07-17 22:30:56 +02:00
parent 3c51661bd8
commit b7aace4262
2 changed files with 8 additions and 3 deletions

View File

@ -17,6 +17,7 @@
:version "2.0.2"
:depends-on (#+sbcl "sb-rotate-byte"
#-(or :cmu :sbcl
(and :lispworks (not :lispworks4)) :ccl :allegro)
:flexi-streams)
(and :lispworks (not :lispworks4))
:ccl :allegro)
"flexi-streams")
:components ((:file "md5")))

View File

@ -712,7 +712,11 @@ determined by the underlying implementation."
(if (<= char-code-limit 256)
(md5sum-sequence string :start start :end end)
(md5sum-sequence
(flexi-streams:string-to-octets string)))))
(flexi-streams:string-to-octets string
:external-format
(if (eq external-format :default)
:UTF-8
external-format))))))
(eval-when (:compile-toplevel :load-toplevel :execute)
(defconstant +buffer-size+ (* 128 1024)