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

Previous Next

Package: guile;

Reported by: linasvepstas <at> gmail.com

Date: Sun, 9 Aug 2015 02:22:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 21221 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Linas Vepstas <linasvepstas <at> gmail.com>
Cc: 21221 <at> debbugs.gnu.org
Subject: Re: bug#21221: guile-2.2 socket ports used with display does not send
 utf8 !
Date: Fri, 30 Oct 2015 00:11:03 +0100
Linas Vepstas <linasvepstas <at> gmail.com> 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’.




This bug report was last modified 8 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.