From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.bugs Subject: bug#15426: 24.3.50; Multibyte filenames and directory-files in unibyte buffer Date: Sat, 21 Sep 2013 19:12:48 +0200 Message-ID: <87r4ciyu7j.fsf@hochschule-trier.de> References: <87ob7nh22t.fsf@hochschule-trier.de> <831u4jl738.fsf@gnu.org> <83wqmbjoat.fsf@gnu.org> <87eh8jgqkp.fsf@hochschule-trier.de> <83vc1uk6ul.fsf@gnu.org> <87a9j6h5zb.fsf@hochschule-trier.de> <83siwyjsga.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379783657 26450 80.91.229.3 (21 Sep 2013 17:14:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Sep 2013 17:14:17 +0000 (UTC) Cc: 15426@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 21 19:14:17 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VNQl7-00010L-BQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Sep 2013 19:14:17 +0200 Original-Received: from localhost ([::1]:60939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNQl6-0003Pq-TX for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Sep 2013 13:14:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNQkz-0003Pc-0H for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2013 13:14:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNQks-0007Ch-4f for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2013 13:14:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNQks-0007Cb-0o for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2013 13:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VNQkr-00065O-JR for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2013 13:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Politz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Sep 2013 17:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15426 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15426-submit@debbugs.gnu.org id=B15426.137978359423327 (code B ref 15426); Sat, 21 Sep 2013 17:14:01 +0000 Original-Received: (at 15426) by debbugs.gnu.org; 21 Sep 2013 17:13:14 +0000 Original-Received: from localhost ([127.0.0.1]:53913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VNQk6-00064B-FC for submit@debbugs.gnu.org; Sat, 21 Sep 2013 13:13:14 -0400 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:42378) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VNQk2-00063x-TR for 15426@debbugs.gnu.org; Sat, 21 Sep 2013 13:13:12 -0400 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum Hochschule Trier] Original-Received: from luca (dslb-188-097-176-226.pools.arcor-ip.net [188.97.176.226]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 682A517509DB; Sat, 21 Sep 2013 19:12:49 +0200 (CEST) Original-Received: from politza by luca with local (Exim 4.72) (envelope-from ) id 1VNQjg-0005R8-Ld; Sat, 21 Sep 2013 19:12:48 +0200 In-Reply-To: <83siwyjsga.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 21 Sep 2013 14:59:49 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78656 Archived-At: Eli Zaretskii writes: > For the record, a much simpler test case is this: > > M-: (multibyte-string-p (car (directory-files default-directory t))) RET > Ok, I didn't know about this invariant. > [...] So the problem happens inside the directory-files call. That's why I put it's name in the title and description. > (You should never trust what the echo area shows when potentially > unibyte strings are involved, always use multibyte-string-p to tell if > a string is multibyte or unibyte.) I think it's reasonable to assume, that two strings have different contents, if they display differently in the same buffer. >> > "The minibuffer displays" is the key point here:[...] >> >> No, the key is that the file's existence depends on the buffer's >> multi-byte status, in which the code is evaluated. > > The truth is neither [...] I guess we can agree on the key, that you seemed to have solved this problem. -ap