From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#3190: marked as done (parse-time-string chokes on unicode day/month names) Date: Sun, 16 Aug 2009 14:45:08 +0000 Message-ID: References: <877hx325bd.fsf@cyd.mit.edu> <874ow31u9z.wl%jan.seeger@thenybble.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1250433908-596-0" X-Trace: ger.gmane.org 1250434035 10228 80.91.229.12 (16 Aug 2009 14:47:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Aug 2009 14:47:15 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 16 16:47:08 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mch0k-000654-9s for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Aug 2009 16:47:06 +0200 Original-Received: from localhost ([127.0.0.1]:49986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mch0j-0007ZG-P6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Aug 2009 10:47:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mch0d-0007Yt-QU for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 10:46:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mch0Z-0007Wb-8C for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 10:46:59 -0400 Original-Received: from [199.232.76.173] (port=36050 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mch0Y-0007WI-PU for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 10:46:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45707) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mch0Y-0005iP-58 for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 10:46:54 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7GEknoM000903; Sun, 16 Aug 2009 07:46:50 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7GEj8dB000651; Sun, 16 Aug 2009 07:45:08 -0700 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 3190 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30271 Archived-At: This is a multi-part message in MIME format... ------------=_1250433908-596-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sun, 16 Aug 2009 10:37:10 -0400 with message-id <877hx325bd.fsf@cyd.mit.edu> and subject line Re: parse-time-string chokes on unicode day/month names has caused the Emacs bug report #3190, regarding parse-time-string chokes on unicode day/month names to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 3190: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D3190 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1250433908-596-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 2 May 2009 13:59:14 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n42Dx9nL008389 for ; Sat, 2 May 2009 06:59:10 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0FkC-0004hC-Tw for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 09:59:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0FkC-0004go-3R for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 09:59:08 -0400 Received: from [199.232.76.173] (port=40976 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0FkB-0004gl-U9 for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 09:59:07 -0400 Received: from thenybble.de ([87.230.95.74]:39878) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M0FkB-0004hv-5G for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 09:59:07 -0400 Received: from localhost ([127.0.0.1] helo=dumper.thenybble.de) by lvps87-230-95-74.dedicated.hosteurope.de with esmtp (Exim 4.63) (envelope-from ) id 1M0Fk6-0007yV-P3 for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 15:59:02 +0200 Date: Sat, 02 May 2009 15:58:16 +0200 Message-ID: <874ow31u9z.wl%jan.seeger@thenybble.de> From: Jan Seeger To: bug-gnu-emacs@gnu.org Subject: parse-time-string chokes on unicode day/month names User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.3 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: parse-time-string skips unicode characters in date strings. Example: (setq german-month-names '(("jan" . 1) ("feb" . 2) ("m=E4r" . 3) ("apr" . 4) ("mai" . 5) ("jun" . 6) ("jul" . 7) ("aug" . 8) ("sep" . 9) ("okt" . 10) ("nov" . 11) ("dez" . 12))) (mapc (lambda (x) (add-to-list 'parse-time-months x)) seeger-german-month-names) (parse-time-string "Sa, 02 M=E4r 2009 15:05:24 +0200") -> (24 5 15 2 nil 2009 6 nil 7200) Expected: (24 5 15 2 nil 2009 6 3 7200) This error is due to parse-time-string chars using the parse-tim-syntax tab= le to check for valid characters. Regards, Jan Seeger If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/22.3/etc/DEBUG for instructions. In GNU Emacs 22.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.14.7) of 2009-04-24 on dumper Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-22' '--infodir=/usr/share/info/emacs-22' '--without-carbon' '--with-sound' '--with-x' '--without-toolkit-scroll-bars' '--with-jpeg' '--without-tiff' '--with-gif' '--with-png' '--with-xpm' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--libdir=/usr/lib64' '--build=x86_64-pc-linux-gnu' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-O2 -pipe -march=nocona' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Text Minor modes in effect: show-paren-mode: t display-time-mode: t shell-dirtrack-mode: t display-battery-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-j C-j C-p C-x C-f ~ / . d e a d d e a d C-n C-n C-s e m a c s C-s C-s C-n C-n C-s C-s C-s C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-a C-SPC C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p M-w C-x b C-y C-p C-p M-< M-f C-f J SPC J a n SPC S e e g e r C-c C-c y q C-h f C-g C-h v e r r e p o r t - e m a c s C-g M-x r e p o r t - e m Recent messages: Mark saved where search started [2 times] Mark set Auto-saving...done Success: Get. Mark set [2 times] Send this bug report to the Emacs maintainers? (y or n) Exit MIME editor mode. Sending...done Quit Making completion list... [2 times] Quit ------------=_1250433908-596-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3190-done) by emacsbugs.donarmstrong.com; 16 Aug 2009 14:36:12 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7GEaB3N031674 for <3190-done@emacsbugs.donarmstrong.com>; Sun, 16 Aug 2009 07:36:12 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 96FD757E25D; Sun, 16 Aug 2009 10:37:10 -0400 (EDT) From: Chong Yidong To: Jan Seeger Cc: 3190-done@emacsbugs.donarmstrong.com Subject: Re: parse-time-string chokes on unicode day/month names Date: Sun, 16 Aug 2009 10:37:10 -0400 Message-ID: <877hx325bd.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I have written a quick fix for parse-time.el that uses POSIX character > classes instead of a vector. I'm a novice elisp hacker, so if there's > anything wrong with this patch, tell me. Thanks for pointing out the problem. I've reworked the patch, and checked it into CVS trunk. ------------=_1250433908-596-0--