From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60398 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: APOP didn't work with pop3.el Date: Thu, 02 Jun 2005 15:10:55 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117693229 18307 80.91.229.2 (2 Jun 2005 06:20:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2005 06:20:29 +0000 (UTC) Cc: NAKAJI Hiroyuki Original-X-From: ding-owner+M8925@lists.math.uh.edu Thu Jun 02 08:20:26 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ddj2m-0006fV-Rk for ding-account@gmane.org; Thu, 02 Jun 2005 08:19:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DdivC-0006Ls-00; Thu, 02 Jun 2005 01:11:14 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Ddiv7-0006Ln-00 for ding@lists.math.uh.edu; Thu, 02 Jun 2005 01:11:09 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Ddiv6-0006Ar-4i for ding@lists.math.uh.edu; Thu, 02 Jun 2005 01:11:08 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ddiv5-0007WY-00 for ; Thu, 02 Jun 2005 08:11:07 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1DdivH-0001M1-Ks; Thu, 02 Jun 2005 01:11:20 -0500 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:MYjN9mCMhIBFdxGTdXp0ZhJxcCA= X-Hashcash: 1:20:050602:ding@gnus.org::BanMkGzNoobe4oPL:00001yCq X-Hashcash: 1:20:050602:nakaji@takamatsu-nct.ac.jp::4BFYsMWjjbFDhrA3:000000000000000000000000000000000006cWF X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60398 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60398 Hi, I've fixed pop3.el in both the Gnus trunk and the v5-10 branch. The problem was caused by the built-in md5 where the 4th argument CODING-SYSTEM was not specified. (md5 OBJECT &optional START END CODING-SYSTEM NOERROR) In that case, CODING-SYSTEM defaults to the value of: (symbol-value (car coding-category-list)) In Japan, many Emacs 21 users load Mule-UCS so as to be able to use UTF-8 for Japanese text, and the value becomes `utf-16-le'. So, md5 encodes a given OBJECT by that coding-system before calculating the hash if OBJECT is a multibyte string. Note that encoding by utf-16-le modifies a string even if it contains only ASCII characters. For example: (md5 (string-as-multibyte "ding")) => "c2eaa4c670cd4c1c537b2a2ae4fbeb5d" (load "un-define") => t (md5 (string-as-multibyte "ding")) => "4b0084d57991b6e1d787618fd808a6b6" Furthermore, the same problem will occur even in the environment of those who don't load Mule-UCS. The following is the case of mine: (symbol-value (car coding-category-list)) => japanese-iso-8bit (let ((s (string-as-multibyte "\351\201\245"))) (list (md5 s) (md5 s nil nil 'binary))) => ("3dfeb73bb814e0ec44993cc0be8976a6" "9942892cc8ccbe915ae3d0eba85f446d") Regards,