mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
UTF-8 string ports in ecmascript test
* test-suite/tests/ecmascript.test (eread, eread/1): Make sure we can render the temporary string ports by specifying UTF-8.
This commit is contained in:
parent
8c76a8971b
commit
99d716b6f6
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
;;;; ecmascript.test --- ECMAScript. -*- mode: scheme; coding: utf-8; -*-
|
||||
;;;;
|
||||
;;;; Copyright (C) 2010, 2011 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 2010, 2011, 2013 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -23,9 +23,11 @@
|
|||
|
||||
|
||||
(define (eread str)
|
||||
(call-with-input-string str read-ecmascript))
|
||||
(with-fluids ((%default-port-encoding "utf-8"))
|
||||
(call-with-input-string str read-ecmascript)))
|
||||
(define (eread/1 str)
|
||||
(call-with-input-string str read-ecmascript/1))
|
||||
(with-fluids ((%default-port-encoding "utf-8"))
|
||||
(call-with-input-string str read-ecmascript/1)))
|
||||
|
||||
(define-syntax parse
|
||||
(syntax-rules ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue