diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-06-28 23:27:47 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-06-29 01:08:54 +0200 |
commit | 88aab05e8de72ac07dc7639f9254cf8e727176ae (patch) | |
tree | 14b7599d61c31f4b7f3c629e931f52c82dc10875 /module/vcomponent | |
parent | Add parse-iso-datetime. (diff) | |
download | calp-88aab05e8de72ac07dc7639f9254cf8e727176ae.tar.gz calp-88aab05e8de72ac07dc7639f9254cf8e727176ae.tar.xz |
Add base64 utility functions.
Diffstat (limited to 'module/vcomponent')
-rw-r--r-- | module/vcomponent/parse/types.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/vcomponent/parse/types.scm b/module/vcomponent/parse/types.scm index e9c5e811..552aa191 100644 --- a/module/vcomponent/parse/types.scm +++ b/module/vcomponent/parse/types.scm @@ -2,7 +2,6 @@ :use-module (util) :use-module (util exceptions) :use-module (util base64) - :use-module (rnrs io ports) :use-module (datetime) :use-module (srfi srfi-9 gnu) ) @@ -13,8 +12,8 @@ (unless (string=? "BASE64" (hashq-ref props 'ENCODING)) (warning "Binary field not marked ENCODING=BASE64")) - (base64->bytevector - (string->bytevector value (make-transcoder (latin-1-codec))))) + ;; TODO whitespace in binary? + (base64-string->bytevector value)) ;; BOOLEAN (define (parse-boolean props value) |