From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4049: 23.1.50; dired doesn't work with files containing newlines in the filename Date: Wed, 05 Aug 2009 21:02:52 +0200 Message-ID: <87skg63wyr.fsf@thinkpad.tsdh.de> Reply-To: Tassilo Horn , 4049@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249500437 22306 80.91.229.12 (5 Aug 2009 19:27:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2009 19:27:17 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 05 21:27:09 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 1MYm8h-0000hG-9N for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Aug 2009 21:27:08 +0200 Original-Received: from localhost ([127.0.0.1]:36258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYm8g-0007sx-LY for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Aug 2009 15:27:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYm8V-0007p3-NV for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2009 15:26:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYm8R-0007lV-P1 for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2009 15:26:55 -0400 Original-Received: from [199.232.76.173] (port=59956 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYm8R-0007l7-0V for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2009 15:26:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57008) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYm8Q-0004My-4C for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2009 15:26:50 -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 n75JQlEL010345; Wed, 5 Aug 2009 12:26:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n75JA78r008984; Wed, 5 Aug 2009 12:10:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Tassilo Horn Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 05 Aug 2009 19:10:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4049 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12494989807741 (code B ref -1); Wed, 05 Aug 2009 19:10:07 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Aug 2009 19:03:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n75J2reJ007736 for ; Wed, 5 Aug 2009 12:02:54 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:34978 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MYllD-00046m-KP for emacs-pretest-bug@gnu.org; Wed, 05 Aug 2009 15:02:52 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MYllA-0008WT-0C for emacs-pretest-bug@gnu.org; Wed, 05 Aug 2009 15:02:51 -0400 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]:38130) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYll9-0008W9-GV for emacs-pretest-bug@gnu.org; Wed, 05 Aug 2009 15:02:47 -0400 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id D75923BE1E9 for ; Wed, 5 Aug 2009 15:02:45 -0400 (EDT) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Wed, 05 Aug 2009 15:02:45 -0400 X-Sasl-enc: GVQ5WtKjbLPp+oZYIey6C6mJ42M+xbVACCCZM0NtSJY3 1249498965 Original-Received: from thinkpad.tsdh.de (p54AF3B9A.dip0.t-ipconnect.de [84.175.59.154]) by mail.messagingengine.com (Postfix) with ESMTPA id EC1CA32E7 for ; Wed, 5 Aug 2009 15:02:44 -0400 (EDT) Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 05 Aug 2009 15:26:55 -0400 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:29904 gmane.emacs.pretest.bugs:24916 Archived-At: 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 emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Filenames on POSIX may contain newlines in the name. I tried that on GNU/Linux. The `ls' command lists the file as "multi?line?file", where the question marks represent the newlines. Unfortunately, dired doesn't work with those files. Here's a "screenshot": --8<---------------cut here---------------start------------->8--- drwxr-xr-x 2 horn horn 4.0K 2009-06-30 22:32 kvm drwxr-xr-x 4 horn horn 4.0K 2009-08-05 19:30 Mail -rw-r--r-- 1 horn horn 4 2009-08-05 20:05 multi line file drwxr-xr-x 7 horn horn 12K 2009-08-05 20:04 News drwxr-xr-x 6 horn horn 4.0K 2009-07-27 20:59 opt --8<---------------cut here---------------end--------------->8--- The listing itself is ok, I'd say. But hitting RET on "multi" says "File no longer exists; type `g' to update dired buffer", and RET on "line" or "file" say "No file on this line". I think that `dired-move-to-end-of-filename' has to be adapted to consider those filenames, too. 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/23.1.50/etc/DEBUG for instructions. In GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-08-02 on localhost Windowing system distributor `The X.Org Foundation', version 11.0.10603000 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' '--libdir=/usr/lib64' '--build=x86_64-pc-linux-gnu' '--program-suffix=-emacs-23-cvs' '--infodir=/usr/share/info/emacs-23-cvs' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=core2 -O2 -pipe' 'LDFLAGS=-Wl,-z,now'' 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: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Article Minor modes in effect: display-time-mode: t yas/global-mode: t yas/minor-mode: t recentf-mode: t iswitchb-mode: t window-number-meta-mode: t window-number-mode: t exec-abbrev-cmd-mode: t savehist-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x d t C-x C-b q C-x b . e m y n C-x b . e m C-x k C-x b s o C-x k M-x r e b i s w i t c h b SPC v i r t a l u a l SPC b u f f e r n s SPC C-g M-x g y q q 1 q C-n SPC SPC SPC SPC SPC SPC SPC SPC SPC c SPC SPC SPC SPC M-2 M-1 M-2 C-SPC M-w M-x r e b Recent messages: 20090805T205934.781> End of message 20090805T205934.803> End of message 20090805T205934.822> End of message 20090805T205934.843> End of message 20090805T205934.864> End of message 20090805T205934.884> End of message 20090805T205935.276> End of message 20090805T205935.626> End of message Mark set Saved text from "> Because a file name on Posix platforms" Load-path shadows: /usr/share/emacs/site-lisp/ruby-mode/ruby-mode hides /usr/share/emacs/23.1.50/lisp/progmodes/ruby-mode ~/repos/el/org-mode/lisp/org-bbdb hides /usr/share/emacs/23.1.50/lisp/org/org-bbdb ~/repos/el/org-mode/lisp/org-colview hides /usr/share/emacs/23.1.50/lisp/org/org-colview ~/repos/el/org-mode/lisp/org-footnote hides /usr/share/emacs/23.1.50/lisp/org/org-footnote ~/repos/el/org-mode/lisp/org-compat hides /usr/share/emacs/23.1.50/lisp/org/org-compat ~/repos/el/org-mode/lisp/org-clock hides /usr/share/emacs/23.1.50/lisp/org/org-clock ~/repos/el/org-mode/lisp/org-bibtex hides /usr/share/emacs/23.1.50/lisp/org/org-bibtex ~/repos/el/org-mode/lisp/org-faces hides /usr/share/emacs/23.1.50/lisp/org/org-faces ~/repos/el/org-mode/lisp/org-timer hides /usr/share/emacs/23.1.50/lisp/org/org-timer ~/repos/el/org-mode/lisp/org-vm hides /usr/share/emacs/23.1.50/lisp/org/org-vm ~/repos/el/org-mode/lisp/org-list hides /usr/share/emacs/23.1.50/lisp/org/org-list ~/repos/el/org-mode/lisp/org-gnus hides /usr/share/emacs/23.1.50/lisp/org/org-gnus ~/repos/el/org-mode/lisp/org-exp hides /usr/share/emacs/23.1.50/lisp/org/org-exp ~/repos/el/org-mode/lisp/org-wl hides /usr/share/emacs/23.1.50/lisp/org/org-wl ~/repos/el/org-mode/lisp/org-plot hides /usr/share/emacs/23.1.50/lisp/org/org-plot ~/repos/el/org-mode/lisp/org-w3m hides /usr/share/emacs/23.1.50/lisp/org/org-w3m ~/repos/el/org-mode/lisp/org-agenda hides /usr/share/emacs/23.1.50/lisp/org/org-agenda ~/repos/el/org-mode/lisp/org-archive hides /usr/share/emacs/23.1.50/lisp/org/org-archive ~/repos/el/org-mode/lisp/org-attach hides /usr/share/emacs/23.1.50/lisp/org/org-attach ~/repos/el/org-mode/lisp/org-mhe hides /usr/share/emacs/23.1.50/lisp/org/org-mhe ~/repos/el/org-mode/lisp/org-irc hides /usr/share/emacs/23.1.50/lisp/org/org-irc ~/repos/el/org-mode/lisp/org-table hides /usr/share/emacs/23.1.50/lisp/org/org-table ~/repos/el/org-mode/lisp/org-info hides /usr/share/emacs/23.1.50/lisp/org/org-info ~/repos/el/org-mode/lisp/org-jsinfo hides /usr/share/emacs/23.1.50/lisp/org/org-jsinfo ~/repos/el/org-mode/lisp/org-id hides /usr/share/emacs/23.1.50/lisp/org/org-id ~/repos/el/org-mode/lisp/org-publish hides /usr/share/emacs/23.1.50/lisp/org/org-publish ~/repos/el/org-mode/lisp/org-mew hides /usr/share/emacs/23.1.50/lisp/org/org-mew ~/repos/el/org-mode/lisp/org-remember hides /usr/share/emacs/23.1.50/lisp/org/org-remember ~/repos/el/org-mode/lisp/org-macs hides /usr/share/emacs/23.1.50/lisp/org/org-macs ~/repos/el/org-mode/lisp/org-mouse hides /usr/share/emacs/23.1.50/lisp/org/org-mouse ~/repos/el/org-mode/lisp/org-install hides /usr/share/emacs/23.1.50/lisp/org/org-install ~/repos/el/org-mode/lisp/org hides /usr/share/emacs/23.1.50/lisp/org/org ~/repos/el/org-mode/lisp/org-rmail hides /usr/share/emacs/23.1.50/lisp/org/org-rmail ~/repos/el/org-mode/lisp/org-mac-message hides /usr/share/emacs/23.1.50/lisp/org/org-mac-message ~/elisp/elp hides /usr/share/emacs/23.1.50/lisp/emacs-lisp/elp