From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Changing HTTP proxy settings in GuixSD Date: Sat, 11 Nov 2017 15:20:57 +0100 Message-ID: <877euwhp6e.fsf@gnu.org> References: <325f5d06-4bb1-294d-2768-07dde6d76090@fastmail.net> <87o9otbexn.fsf@gnu.org> <87mv3upurc.fsf@gmail.com> <87h8u1lr02.fsf@gnu.org> <87wp2xdszf.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDWed-0005fF-6J for guix-devel@gnu.org; Sat, 11 Nov 2017 09:21:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDWec-000800-6J for guix-devel@gnu.org; Sat, 11 Nov 2017 09:21:03 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:43290) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDWeb-0007yk-VD for guix-devel@gnu.org; Sat, 11 Nov 2017 09:21:02 -0500 In-Reply-To: <87wp2xdszf.fsf@netris.org> (Mark H. Weaver's message of "Sat, 11 Nov 2017 05:12:20 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mark H Weaver Cc: guix-devel Mark H Weaver skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> It turned out to come from a typo in Guile 2.2=E2=80=99s web client, now= fixed >> here: >> >> https://git.savannah.gnu.org/cgit/guile.git/commit/?h=3Dstable-2.2&id= =3D7d0d9e2c25c1e872cfc7d14ab5139915f1813d56 > > [...] > >> diff --git a/module/web/http.scm b/module/web/http.scm >> index 993b50e..62f0624 100644 >> --- a/module/web/http.scm >> +++ b/module/web/http.scm >> [...] >> @@ -1158,7 +1158,7 @@ three values: the method, the URI, and the version= ." >> (put-symbol port scheme) >> (put-string port "://") >> (cond >> - ((host string-index #\:) >> + ((string-index host #\:) >> (put-char #\[ port) >> (put-string port host >> (put-char port #\]))) > > There are 4 typos in the cond clause above, all introduced in this > commit: > > https://git.savannah.gnu.org/cgit/guile.git/commit/?id=3D96b994b6f81574= 7ce2548123cc996d8132bd4781 > > which includes: > > - ((string-index host #\:) > - (display #\[ port) > - (display host port) > - (display #\] port)) > + ((host string-index #\:) > + (put-char #\[ port) > + (put-string port host > + (put-char port #\]))) > > In addition to the typo you fixed: > > * The first call to 'put-char' above has its arguments reversed. > * The following line is missing its ')'. > * The last line has an extra ')'. Ouch, good catch. I pushed appropriate fixes. If you spot more, feel free to fix them directly! :-) Thanks, Ludo=E2=80=99.