bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21221: guile-2.2 socket ports used with display does not send utf8 !


From: Ludovic Courtès
Subject: bug#21221: guile-2.2 socket ports used with display does not send utf8 !
Date: Fri, 30 Oct 2015 00:11:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Linas Vepstas <address@hidden> skribis:

> The following simple client-server program fails for me.
> For simplicity, for the server, just use netcat listening on port 7777:
>
> $ nc -l 7777
>
> In a guile shell, try this:
> (setlocale LC_ALL "")
> (define sss (socket PF_INET SOCK_STREAM 0))
> (set-port-encoding! sss "utf-8")
> (connect sss AF_INET (inet-pton AF_INET "127.0.0.1") 7777)
> (set-port-encoding! sss "utf-8")
> (display "SmålandSmåland\n" sss)
> (close-port sss)

I can confirm this bug with commit 00884bb.

Guile 2.0.11ish is unaffected though.

Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]