Hi Mark, Thanks for your reply!
Le 20/07/2022 à 22:42, Mark H Weaver a écrit :
Hi, No, this is certainly a bug. It sounds like the 'at_stream_start_for_bom_write' port flag is not being cleared, as it should be, after the first character is written. I suspect that it worked correctly when I first implemented proper BOM handling in 2013 (commit cdd3d6c9f423d5b95f05193fe3c27d50b56957e9), but the ports code has seen some major reworking since then. I guess that BOM handling was broken somewhere along the way. I would suggest filing a bug report.
OK, opened https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56675
I don't have time to look into it, sorry. I don't work on Guile anymore.
A pity :-) Cheers, Jean