From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.bugs Subject: bug#36085: 26.2; find-dired octal escapes instead of Cyrillic text Date: Sun, 09 Jun 2019 14:34:45 +0200 Message-ID: <87ftojos2i.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> References: <02150b33-7105-f106-c8ea-afb4e7d04b67@yandex.ru> <83v9xgnu9p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="10161"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36085@debbugs.gnu.org To: Eli Zaretskii , Nikita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 09 14:35:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hZx2W-0002UZ-Fi for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 14:35:12 +0200 Original-Received: from localhost ([::1]:35644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZx2T-0003RP-H0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 08:35:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41258) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZx2N-0003R6-VX for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 08:35:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZx2M-00016E-SZ for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 08:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40873) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZx2M-000165-P5 for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 08:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hZx2M-0005vo-E3 for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 08:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Nordin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Jun 2019 12:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36085 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 36085-submit@debbugs.gnu.org id=B36085.156008369922787 (code B ref 36085); Sun, 09 Jun 2019 12:35:02 +0000 Original-Received: (at 36085) by debbugs.gnu.org; 9 Jun 2019 12:34:59 +0000 Original-Received: from localhost ([127.0.0.1]:54417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZx2I-0005vT-Mh for submit@debbugs.gnu.org; Sun, 09 Jun 2019 08:34:58 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:59733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZx2G-0005vG-Tx for 36085@debbugs.gnu.org; Sun, 09 Jun 2019 08:34:57 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id BE5A02400E5 for <36085@debbugs.gnu.org>; Sun, 9 Jun 2019 14:34:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1560083690; bh=PnLh8WjJ6arUK25m+oT2RhgLKNanugGDLNu2V4QcYlU=; h=From:To:Cc:Subject:Date:From; b=TrmMTZqOql6Mdg9uFbiDYhNTTP9n5y0Z2icbVfeswvUatPWQJ74XhX5YL6GdFPYLr mew+ooGqcxxfQq7wHAzw2Pfc3MF5RKirSG6o2MTwaIgadvjxks6/SXG4uTWbeqliQV 0BDPcrq+SJCrNc3YT0e08+SqSaXlqJtQcY9I+qs8zPQ0ss1msrwMYvixRi9jiZdDUU TqR66gnX4al69nv784zkteBUaZPp5whnCpMwGyg9ai5Z18h7VYpo4K6WlnwqY1/h49 WeoTQPNmvdKJbkF/YGtYMbFSnc0pHVgP62QpxsUc9ChaYtGjvrssgFhGvgaF3ri3eL DZnie0zEhheKw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 45MG1P1BkVz9rxW; Sun, 9 Jun 2019 14:34:48 +0200 (CEST) In-Reply-To: <83v9xgnu9p.fsf@gnu.org> 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: 209.51.188.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:160274 Archived-At: Eli Zaretskii writes: >> From: Nikita >> Date: Tue, 4 Jun 2019 08:43:06 +0500 >>=20 >> When i open dired, go to the needed directory, run "M-x dired-find" >> "-name "*=D0=9F=D0=BE=D1=80=D1=82=D1=80=D0=B5=D1=82*" (or anything at al= l that will give some results) >> results come back with octal escapes instead of Cyrillic letters. >> I cannot open pictures that it finds for example. > > Turns out the octal escapes are produced by 'find' itself in this > case. Try the following command in that directory from the shell > prompt: > > find . \( -iname "*=D0=9F=D0=BE=D1=80=D1=82=D1=80=D0=B5=D1=82*" \) -ls > > and you will see the same octal escape instead of the Cyrillic > characters. The man page for 'find' clearly documents this, under > "Unusual Filenames": > > Unusual characters are handled differently by various actions, as > described below. > [...] > > -ls, -fls > Unusual characters are always escaped. White space, backslash, > and double quote characters are printed using C-style escaping > (for example `\f', `\"'). Other unusual characters are printed > using an octal escape. Other printable characters (for -ls and > -fls these are the characters between octal 041 and 0176) are > printed as-is. > > What this means is that any non-ASCII character will be converted to a > series of octal escapes. IMO, this is a terrible misfeature in GNU > Findutils, as such "handling" of non-ASCII characters has no place in > today's global environment. Here on 27.0.50 the customize option for `find-ls-option` says For example, to use human-readable file sizes with GNU ls: ("-exec ls -ldh {} +" . "-ldh") Is it ignorant to suggest to try this as a workaround? It "worked" here. Thanks for this bug anyway because i have had the same issue sometimes and I will continue use this option and see if it makes any problems. > > I suggest to report this bug to the GNU Findutils developers. Because ls doesn't seem to do this conversion -- inconsistent? :P Best regards -- Tomas