bug#75998: [guile-lib] html->sxml does not decode entities in attributes
Hi, Maxim Cournoyer writes: > Tomas, is it a fix you'd be interested in contributing? Otherwise, I'll > get to it but my hands are rather full at the moment :-). To quote myself from the other thread: > Probably not. I have spent 20 minutes staring into the file and do not > really have any idea where to start (ok, probably somewhere around > `scan-attr'). So I cannot really promise I will be able to work on this > (at least not soon), since I assume it will take me long time to figure > out. So I do not have any immediate plans to start working on this. :/ Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. signature.asc Description: PGP signature
bug#76163: Badly treated eol-style (end of line style) in R6RS transcoders.
When running the `transcoders.scm` script (file attached) in Guile: ``` $ guile transcoders.scm ``` I get the output: ``` "abc\r" ``` but it should be: ``` "abc" ``` When running Chez Scheme: ``` $ chezscheme --script transcoders.scm ``` I get the right output: ``` "abc" ``` This is due to faulty transcoders in Guile, maybe? My `guile --version` says `guile (GNU Guile) 3.0.9`, and `chezscheme --version` says `9.5.4`. Many thanks, Yuval Langer. (import (rnrs io ports) (rnrs bytevectors)) (let* ([x (string->utf8 "abc\r\ndef\r\n")] [input-port-from-bytevector (open-bytevector-input-port x)] [transcoder (make-transcoder (utf-8-codec) (eol-style crlf))] [text-port (transcoded-port input-port-from-bytevector transcoder)] [a-line (get-line text-port)]) (write a-line) (newline) a-line) ;; => "abc\r", but should be "abc"