From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46342: 28.0.50; socks-send-command munges IP address bytes to UTF-8 Date: Sat, 06 Feb 2021 17:15:50 +0200 Message-ID: <83czxdns61.fsf@gnu.org> References: <875z355sh9.fsf@neverwas.me> <83pn1do008.fsf@gnu.org> <87r1lt2s8k.fsf@neverwas.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33695"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46342@debbugs.gnu.org To: "J.P." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 06 16:16:29 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8PK0-0008gT-US for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Feb 2021 16:16:28 +0100 Original-Received: from localhost ([::1]:54600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8PK0-0000mg-0K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Feb 2021 10:16:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8PJa-0000hf-TQ for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2021 10:16:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8PJZ-0006kJ-R3 for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2021 10:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8PJZ-0007iB-Kz for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2021 10:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Feb 2021 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46342 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 46342-submit@debbugs.gnu.org id=B46342.161262455429627 (code B ref 46342); Sat, 06 Feb 2021 15:16:01 +0000 Original-Received: (at 46342) by debbugs.gnu.org; 6 Feb 2021 15:15:54 +0000 Original-Received: from localhost ([127.0.0.1]:46290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8PJS-0007hn-7m for submit@debbugs.gnu.org; Sat, 06 Feb 2021 10:15:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8PJQ-0007hZ-Je for 46342@debbugs.gnu.org; Sat, 06 Feb 2021 10:15:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40472) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8PJI-0006ec-4a; Sat, 06 Feb 2021 10:15:46 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2299 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l8PJH-0004MN-El; Sat, 06 Feb 2021 10:15:43 -0500 In-Reply-To: <87r1lt2s8k.fsf@neverwas.me> (jp@neverwas.me) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199439 Archived-At: > From: "J.P." > Cc: 46342@debbugs.gnu.org > Date: Sat, 06 Feb 2021 06:19:55 -0800 > > Re appropriate encoding: correct me if I'm wrong (internet), but among > the Emacs coding systems, it'd be latin-1. That depends on what the other end expects. Does it expect latin-1 in this case? > In the proposed patch for socks-send-command, swapping out the call > to unibyte-string with (encode-coding-string address 'latin-1) has > the same effect of preserving, say, char 216 as the single byte > "\330" and not "\303\230". Does emitting the single byte \330 produce the correct result in this case? Then by all means please use (encode-coding-string address 'latin-1) > Re program on the other end: this would be any program offering a proxy > service that speaks the same protocol. Popular ones include tor and ssh. > There's also a "bind" command that allows your client (Emacs) to act as > a server and listen/accept connections on the remote end as if they were > present on your local network. And those expect Latin-1 encoding in this case?