From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64380 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.gnus.general Subject: GPG --status-fd outputs in UTF-8. Date: Wed, 07 Mar 2007 19:22:08 +0100 Organization: Epita/LRDE Message-ID: <87ps7k9anj.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: sea.gmane.org 1173291820 22738 80.91.229.12 (7 Mar 2007 18:23:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Mar 2007 18:23:40 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M12904@lists.math.uh.edu Wed Mar 07 19:23:32 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1HP0nS-0003SN-NV for ding-account@gmane.org; Wed, 07 Mar 2007 19:23:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1HP0mL-0007LY-Lr; Wed, 07 Mar 2007 12:22:21 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HP0mJ-0007LB-Fj for ding@lists.math.uh.edu; Wed, 07 Mar 2007 12:22:19 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HP0mD-0001jw-96 for ding@lists.math.uh.edu; Wed, 07 Mar 2007 12:22:19 -0600 Original-Received: from smtp3-g19.free.fr ([212.27.42.29]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HP0mC-0004F1-00 for ; Wed, 07 Mar 2007 19:22:12 +0100 Original-Received: from localhost (ivr94-6-82-230-255-91.fbx.proxad.net [82.230.255.91]) by smtp3-g19.free.fr (Postfix) with ESMTP id 86B33394E for ; Wed, 7 Mar 2007 19:22:11 +0100 (CET) X-Website: http://michael.cadilhac.name Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWPh+Tai+5r5YKBAEU CQQzGAtiq7gjAAACR0lEQVQ4jW2UzW7lIAyFzVW8BzTZX5DmCZLuU2H2pMXv/ypzbK7aSh2kRCRf /HNsE0q7Sg+RQ7JFKaqtrRNAl5AIIKe6D5DBqgbmUAe5hBI1wIRFAHjeM0RKtZi7XVVEpb0BSNfA IddChChT5DildSLWOWhY5IEItMnncZgFcUAc/5jjwCMsDosRNdfKPDTFEdVBW8C+RebDb4N5Orio RhM1+11IJyx0ng2+LryFHBMPDQDYHrY6IfGuU3ouiXTQNE8LIJDKOWpNxERTFrggQwRPd7USUsTW fJ0XbR3bdj5KgBYy4SACpxDeUYEUAzLmtJ1iIrD2gczPq8Qomjhsh/RjGIgKIO8p7NITjwlx7WID nsnQe5NeuTvoBpi8LX6vLLOh5icjOHqBypgnuSp7M+RE1agbQKHQr5E2z1WObhYW4gMqeGQL7joM jCf2DxSk5ApADSYHfFF4igNfJZL1z0GKP0FN02s4XiDXr7V5P94W6I9v8MfBOQDmfwAaVYt+x8Da v4DJvX8BAdin3Knm5yMZYAO4ABDkDniZLLfi4P40gP1F0TPGZOu0CGwA1lcowxwlGy6A9705mD0V jHCxwVZT/hYdRJVUGZNlx6l7ScQBTluof6Wj6bsPYlvpwoTvXFD9gHPn2TZPF3ntI2ecxVrW5MrV XiCie5EeNa7BlWu/HNSkprDUva163PHxAv5jyGV7gVzyAghSKOTnat85UIYFICXbD2NV9rRiv0BS tKQsg6OHH4A15F1WW+UHKHHa32h6aPnAm3/pUcWp+WYnTQAAAABJRU5ErkJggg== User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64380 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Hi! It can be read from the DETAILS file of Gnupg the following : ,---- | Format of the "--status-fd" output | ================================== | Every line is prefixed with "[GNUPG:] ", followed by a keyword with | the type of the status line and a some arguments depending on the | type (maybe none)[...] | The username is the primary one encoded in UTF-8 `---- To be consistent with the rest of gpg(1)'s output, it would be good to ask Gnupg to output everything in UTF-8 and treat the buffer as such. Here's a proposal : --=-=-= Content-Type: text/x-patch; charset=iso-8859-1 Content-Disposition: inline; filename=pgg-gpg.patch Content-Transfer-Encoding: quoted-printable Index: lisp/pgg-gpg.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/local/cvsroot/gnus/lisp/pgg-gpg.el,v retrieving revision 7.27 diff -B -w -c -r7.27 pgg-gpg.el *** lisp/pgg-gpg.el 1 Mar 2007 23:43:33 -0000 7.27 =2D-- lisp/pgg-gpg.el 7 Mar 2007 18:09:13 -0000 *************** *** 72,77 **** =2D-- 72,78 ---- (let* ((output-file-name (pgg-make-temp-file "pgg-output")) (args (append (list "--no-tty" + "--display-charset" "utf-8" "--status-fd" "1" "--command-fd" "0" "--yes" ; overwrite *************** *** 101,106 **** =2D-- 102,108 ---- (setq process (apply #'start-process "pgg-gpg" buffer pgg-gpg-program args))) (set-default-file-modes orig-mode)) + (set-process-coding-system process 'utf-8) (set-process-filter process #'pgg-gpg-process-filter) (set-process-sentinel process #'pgg-gpg-process-sentinel) process)) Index: lisp/ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v retrieving revision 7.1503 diff -C0 -r7.1503 ChangeLog *** lisp/ChangeLog 6 Mar 2007 05:16:37 -0000 7.1503 =2D-- lisp/ChangeLog 7 Mar 2007 18:09:28 -0000 *************** *** 0 **** =2D-- 1,5 ---- + 2007-03-07 Micha=EBl Cadilhac +=20 + * pgg-gpg.el (pgg-gpg-start-process): Ask Gnupg to output everything in + UTF-8, and treat it as such. +=20 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks in advance ! (Well, I have to admit, I didn't like to see =AB Micha=EBl =BB spelled =AB Micha=C3=ABl =BB :-)) =2D-=20 | Micha=EBl `Micha' Cadilhac | Pour les 35-40 ans, l'humour = | | http://michael.cadilhac.name | c'est une plus-value. = | | JID/MSN: | -- Guillaume L. = | `---- michael.cadilhac@gmail.com | - = --' --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (GNU/Linux) iD8DBQFF7wLRUJhDmOfFA3URAqpAAJ9i7HmsKJyDV5Mm5BIAOF3UGuCH2wCdGigb z7sixbwtXR0bXsioZnytq70= =57fG -----END PGP SIGNATURE----- --==-=-=--