From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29189: 25.3; Dired does not work with binary filenames Date: Sat, 11 Nov 2017 16:18:20 +0200 Message-ID: <83k1ywoq4z.fsf@gnu.org> References: <3CE09384-E9D6-4DB9-853A-11088CF8DF80@gnu.org> <83a7ztp6p7.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1510409951 10846 195.159.176.226 (11 Nov 2017 14:19:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Nov 2017 14:19:11 +0000 (UTC) Cc: schwab@suse.de, 29189@debbugs.gnu.org To: vianchielfaura@gmail.com, Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 11 15:19:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDWcj-0002YP-44 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Nov 2017 15:19:05 +0100 Original-Received: from localhost ([::1]:45798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDWcq-0005Nh-J4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Nov 2017 09:19:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDWcj-0005NO-SG for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 09:19:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDWcg-0007Nl-MO for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 09:19:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54394) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDWcg-0007Nf-Ip for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 09:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eDWcg-0007oJ-D7 for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 09:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Nov 2017 14:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29189 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29189-submit@debbugs.gnu.org id=B29189.151040991129981 (code B ref 29189); Sat, 11 Nov 2017 14:19:02 +0000 Original-Received: (at 29189) by debbugs.gnu.org; 11 Nov 2017 14:18:31 +0000 Original-Received: from localhost ([127.0.0.1]:34842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDWcA-0007nV-SI for submit@debbugs.gnu.org; Sat, 11 Nov 2017 09:18:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDWc9-0007nJ-HG for 29189@debbugs.gnu.org; Sat, 11 Nov 2017 09:18:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDWc3-0007Fr-9Q for 29189@debbugs.gnu.org; Sat, 11 Nov 2017 09:18:24 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDWbz-0007Et-Fz; Sat, 11 Nov 2017 09:18:19 -0500 Original-Received: from [176.228.60.248] (port=2134 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eDWbz-0000q1-3O; Sat, 11 Nov 2017 09:18:19 -0500 In-reply-to: <83a7ztp6p7.fsf@gnu.org> (message from Eli Zaretskii on Sat, 11 Nov 2017 10:20:36 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:139760 Archived-At: > Date: Sat, 11 Nov 2017 10:20:36 +0200 > From: Eli Zaretskii > Cc: schwab@suse.de, 29189@debbugs.gnu.org > > > Without -b, the filename in Dired is two binary characters, \300 and > > \265. With -b, the filename in Dired is four characters, \265 > > Sorry, it seems I was confused. You didn't originally say what file > name you expected to see in Dired. If the expected file name is \265, > a single byte, but you see \300\265 instead, then the problem is not > in deletion, the problem is in how Dired prepares file names for > display. I will look into that when I have time, if no one beats me > to it. The problem is in insert-directory. It manually decodes each file name which was output by 'ls', and that produces strangely inconsistent results when the file name includes raw bytes: sometimes we get the 2-byte sequence starting with \300, sometimes the original byte survives unchanged, and sometimes I see the sequence \301\200 instead of a lone \300 in the file name. I'm trying to understand what's going on and find a solution to that. CC'ing Handa-san in the hope that he could comment on this or provide some suggestions.