From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64143 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: password.el Date: Tue, 26 Dec 2006 19:30:10 +0100 Message-ID: <87ac1ase6l.fsf@latte.josefsson.org> References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1167157838 23847 80.91.229.10 (26 Dec 2006 18:30:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Dec 2006 18:30:38 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M12666@lists.math.uh.edu Tue Dec 26 19:30:37 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by dough.gmane.org with esmtp (Exim 4.50) id 1GzH4O-0000ig-7z for ding-account@gmane.org; Tue, 26 Dec 2006 19:30:36 +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 1GzH4E-0007Er-Q7; Tue, 26 Dec 2006 12:30:26 -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 1GzH4D-0007EQ-9T for ding@lists.math.uh.edu; Tue, 26 Dec 2006 12:30:25 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1GzH47-0007Z9-EV for ding@lists.math.uh.edu; Tue, 26 Dec 2006 12:30:25 -0600 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GzH45-0003Zq-00 for ; Tue, 26 Dec 2006 19:30:17 +0100 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id kBQIUARd021662 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Dec 2006 19:30:10 +0100 Original-To: Daiki Ueno OpenPGP: id=B565716F; url=http://josefsson.org/key.txt Mail-Copies-To: nobody X-Hashcash: 1:22:061226:ueno@unixuser.org::DfzJtxtu0GmPeQjW:23m6 X-Hashcash: 1:22:061226:ding@gnus.org::ZCgsvzpxc50JBTeB:2rkL In-Reply-To: (Daiki Ueno's message of "Tue\, 26 Dec 2006 14\:41\:54 +0900") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux) X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64143 Archived-At: Daiki Ueno writes: > Hello, > > On Emacs 22, the following code signals an error > > (require 'password) > (password-cache-add "0" (string (make-char 'latin-iso8859-1 100))) > (password-cache-remove "0") > > Debugger entered--Lisp error: (error "Attempt to change byte length of a string") > fillarray("\x8e4" 95) > > The following patch will fix this. Looks fine, please install it if you haven't done so already. /Simon > Index: password.el > =================================================================== > RCS file: /usr/local/cvsroot/gnus/lisp/password.el,v > retrieving revision 7.12 > diff -u -r7.12 password.el > --- password.el 30 Apr 2006 09:44:06 -0000 7.12 > +++ password.el 26 Dec 2006 05:41:18 -0000 > @@ -113,7 +113,9 @@ > user again." > (let ((password (symbol-value (intern-soft key password-data)))) > (when password > - (fillarray password ?_) > + (if (fboundp 'clear-string) > + (clear-string password) > + (fillarray password ?_)) > (unintern key password-data)))) > > (defun password-cache-add (key password) > > -- > Daiki Ueno