With this code:
(let ((p (open-output-file "x.txt")))
(set-port-encoding! p "UTF16")
(display "ABC" p)
(close-port p))
the sequence of bytes in the output file x.txt is
['FF', 'FE', '41', '0', 'FF', 'FE', '42', '0', 'FF', 'FE', '43', '0']
As you can see, a BOM is being added before e
Hi,
I got Guile to segfault in srfi-37.
Here’s a Guile script:
--8<---cut here---start->8---
#!/run/current-system/profile/bin/guile \
--no-auto-compile
!#
(use-modules (srfi srfi-1) (srfi srfi-37) (ice-9 match))
(define %options
(list (option '("greet") #