unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Linas Vepstas <linasvepstas@gmail.com>
Cc: 21221-done@debbugs.gnu.org
Subject: bug#21221: guile-2.2 socket ports used with display does not send utf8 !
Date: Mon, 20 Jun 2016 17:55:37 +0200	[thread overview]
Message-ID: <87y45zg8hy.fsf@pobox.com> (raw)
In-Reply-To: <CAHrUA36i0jA6U57dVGzDEv9J5wJTzAUYOs42qZdb9gKEE_FfFQ@mail.gmail.com> (Linas Vepstas's message of "Sat, 8 Aug 2015 21:20:54 -0500")

On Sun 09 Aug 2015 04:20, Linas Vepstas <linasvepstas@gmail.com> writes:

> 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)
>
>
> The SmålandSmåland gets corrupted:  nc receives Sm?landSm?land

I have tried this in 2.1.3 and it seems to work for me.  Thanks for the
report, please reopen if you can still reproduce the bug.

Cheers,

Andy





  parent reply	other threads:[~2016-06-20 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-09  2:20 bug#21221: guile-2.2 socket ports used with display does not send utf8 ! Linas Vepstas
2015-10-29 23:11 ` Ludovic Courtès
2016-06-20 15:55 ` Andy Wingo [this message]
     [not found] ` <handler.21221.D21221.146643814711185.notifdone@debbugs.gnu.org>
2016-06-21 13:31   ` bug#21221: closed (Re: bug#21221: guile-2.2 socket ports used with display does not send utf8 !) Linas Vepstas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y45zg8hy.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=21221-done@debbugs.gnu.org \
    --cc=linasvepstas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).