From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mark A. Hershberger" Newsgroups: gmane.emacs.devel Subject: encoding and content-length for url-http.el Date: Fri, 10 Jun 2005 11:41:16 -0400 Message-ID: <1118418076.8854.41.camel@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1348943680==" X-Trace: sea.gmane.org 1118431018 7850 80.91.229.2 (10 Jun 2005 19:16:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2005 19:16:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 10 21:16:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DgozU-0006pL-1B for ged-emacs-devel@m.gmane.org; Fri, 10 Jun 2005 21:16:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dgp6f-00037U-5w for ged-emacs-devel@m.gmane.org; Fri, 10 Jun 2005 15:23:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dgp6N-00036z-Cr for emacs-devel@gnu.org; Fri, 10 Jun 2005 15:23:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dgp3G-0002C9-KK for emacs-devel@gnu.org; Fri, 10 Jun 2005 15:20:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dgp2x-0001oP-5t for emacs-devel@gnu.org; Fri, 10 Jun 2005 15:20:03 -0400 Original-Received: from [64.124.179.97] (helo=superman.everybody.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DgoWh-00080K-6G for emacs-devel@gnu.org; Fri, 10 Jun 2005 14:46:43 -0400 Original-Received: from 66.216.169.50.static.dejazzd.com ([66.216.169.50] helo=[192.168.1.20]) by superman.everybody.org with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.50) id 1DgoWD-0002T4-Jt for emacs-devel@gnu.org; Fri, 10 Jun 2005 13:46:15 -0500 Original-To: emacs-devel@gnu.org X-Mailer: Evolution 2.3.2 X-SA-Exim-Connect-IP: 66.216.169.50 X-SA-Exim-Mail-From: mah@everybody.org X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on superman.everybody.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38531 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38531 --===============1348943680== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-yTYs6ERK7aLJVBiMveHL" --=-yTYs6ERK7aLJVBiMveHL Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Could I get input on the following patch before I apply it? The first part (using string-bytes instead of length) seems like a no-brainer. The second part, I'm less sure about. --- url-http.el 4 Jun 2005 18:37:16 -0000 1.14 +++ url-http.el 10 Jun 2005 18:36:06 -0000 @@ -259,7 +259,7 @@ (if url-request-data (concat "Content-length: " (number-to-string - (length url-request-data)) + (string-bytes url-request-data)) "\r\n")) ;; End request "\r\n" @@ -1066,6 +1066,9 @@ (set-process-buffer connection buffer) (set-process-sentinel connection 'url-http-end-of-document-sentinel) (set-process-filter connection 'url-http-generic-filter) + (set-process-coding-system connection + (detect-coding-string url-request-data t) + url-request-coding-system) (process-send-string connection (url-http-create-request url)))) buffer)) =20 --=20 http://mah.everybody.org/weblog/ GPG Fingerprint: 7E15 362D A32C DFAB E4D2 B37A 735E F10A 2DFC BFF5 More people are killed every year by pigs than by sharks, which shows you how good we are at evaluating risk. -- Bruce Schneier --=-yTYs6ERK7aLJVBiMveHL Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCqbScc17xCi38v/URAjC3AJ9V0bcXA5GlwNrqda4tbNxujBn5CwCfVX8o MsRpdjbxGKk8tkwWCEocGgI= =JeKA -----END PGP SIGNATURE----- --=-yTYs6ERK7aLJVBiMveHL-- --===============1348943680== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1348943680==--