aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/guile/failing-encoding-test.patch
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-16 03:19:21 +0900
committerOphestra <cat@gensokyo.uk>2026-11-16 03:19:21 +0900
commit5ab57929655f2228a3780105027c3884410b3bcf (patch)
tree888f9c72d1ee128ee1d4e9707b50d2193d245dc0 /internal/rosa/package/guile/failing-encoding-test.patch
parentc6b8e1fc03db8c256a2b3f3610f1d30bd0976293 (diff)
internal/rosa/package: guile
Required by autogen. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/guile/failing-encoding-test.patch')
-rw-r--r--internal/rosa/package/guile/failing-encoding-test.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/internal/rosa/package/guile/failing-encoding-test.patch b/internal/rosa/package/guile/failing-encoding-test.patch
new file mode 100644
index 00000000..18645b7b
--- /dev/null
+++ b/internal/rosa/package/guile/failing-encoding-test.patch
@@ -0,0 +1,27 @@
+The set-port-encoding! procedure does not work properly on musl
+as musl only supports UTF-8 text encoding.
+
+diff -upr guile-3.0.8.orig/test-suite/tests/reader.test guile-3.0.8/test-suite/tests/reader.test
+--- guile-3.0.8.orig/test-suite/tests/reader.test 2022-07-22 17:32:35.731931222 +0200
++++ guile-3.0.8/test-suite/tests/reader.test 2022-07-22 17:33:06.671996144 +0200
+@@ -405,19 +405,6 @@
+ (string->list s2)
+ (list #\" #\\ #\b #\\ #\x #\1 #\8 #\; #\space #\0 #\@ #\"))))
+
+- (pass-if "display R6RS string escapes"
+- (string=?
+- (with-read-options '(r6rs-hex-escapes)
+- (lambda ()
+- (let ((pt (open-output-string))
+- (s1 (apply string (map integer->char
+- '(#xFF #x100 #xFFF #x1000 #xFFFF #x10000)))))
+- (set-port-encoding! pt "ASCII")
+- (set-port-conversion-strategy! pt 'escape)
+- (display s1 pt)
+- (get-output-string pt))))
+- "\\xff;\\x100;\\xfff;\\x1000;\\xffff;\\x10000;"))
+-
+ (pass-if "one-digit hex escape"
+ (eqv? (with-input-from-string "#\\xA" read)
+ (integer->char #x0A)))
+