Subject: Re: bug#59510: cuirass-remote-server: put-char encoding failed

From: Ludovic Courtès <[email-masked]>
Date: Wed, 23 Nov 2022 14:59:34 +0100

Hi,

Mathieu Othacehe <[email-masked]> skribis:

> On Cuirass 1.1.0-13.1341725, the fetch workers are experimenting the
> following issue:

Is this a regression?

> 2022-11-22 00:28:15 In cuirass/scripts/remote-server.scm:
> 2022-11-22 00:28:15    415:12  3 (_)
> 2022-11-22 00:28:15     387:7  2 (run-fetch _)
> 2022-11-22 00:28:15 2022-11-22T00:28:15 build succeeded: '/gnu/store/wbnmp70x7hcwr9h5iw0v3w7waclw277x-rust-openssl-sys-0.9.75.drv'
> 2022-11-22 00:28:15 In unknown file:
> 2022-11-22 00:28:15            1 (display "2022-11-22T00:28:15 fetching '/gnu/store/hl2dkk1ayavfxpydm5r12kjz201idk1g-rust-num-0.3.0.drv' from http://141.80.167.165:5558\n" #<output: file 2>)
> 2022-11-22 00:28:15 2022-11-22T00:28:15 build succeeded: '/gnu/store/12dyhjzl0cy984jif7pp9w9hsrdgkcdf-rust-trust-dns-openssl-0.18.1.drv'
> 2022-11-22 00:28:15 2022-11-22T00:28:15 build succeeded: '/gnu/store/j44ia9xffsggflgwg29q1l89vbga2y25-rust-trust-dns-https-0.18.1.drv'
> 2022-11-22 00:28:15 In ice-9/boot-9.scm:
> 2022-11-22 00:28:15 2022-11-22T00:28:15 build succeeded: '/gnu/store/g9xa21wmxyk1sfra84pq3mx8hvlx10hh-rust-actix-server-config-0.1.2.drv'
> 2022-11-22 00:28:15   1685:16  0 (raise-exception _ #:continuable? _)
> 2022-11-22 00:28:15 ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> 2022-11-22 00:28:15 Throw to key `encoding-error' with args `("put-char" "conversion to port encoding failed" 84 #<output: file 2> #\2)'.

The string passed to ‘display’ above is pure ASCII so I wonder how we
can get that exception, apart from having ‘current-error-port’ using a
non-ASCII-compatible encoding such as UTF-32.

Ludo’.