[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11197: problems with string ports and unicode
From: |
Ludovic Courtès |
Subject: |
bug#11197: problems with string ports and unicode |
Date: |
Wed, 20 Jun 2012 22:58:39 +0200 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.1 (gnu/linux) |
Hi,
address@hidden (Ludovic Courtès) skribis:
> @@ -23,10 +23,16 @@
> ;;; Code:
>
> (define-module (srfi srfi-6)
> - #:re-export (open-input-string open-output-string get-output-string))
> + #:export (open-input-string open-output-string)
> + #:re-export (get-output-string))
>
> -;; Currently, guile provides these functions by default, so no action
> -;; is needed, and this file is just a placeholder.
> +(define (open-input-string s)
> + (with-fluids ((%default-port-encoding "UTF-8"))
> + ((@ (guile) open-input-string) s)))
> +
> +(define (open-output-string)
> + (with-fluids ((%default-port-encoding "UTF-8"))
> + ((@ (guile) open-output-string))))
I’ve applied it as commit ecb48dccbac6b8fdd969f50a23351ef7f4b91ce5.
Thanks,
Ludo’.
- bug#11197: problems with string ports and unicode,
Ludovic Courtès <=