From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: dired-do-find-regexp failure with latin-1 encoding Date: Sun, 29 Nov 2020 21:07:49 +0200 Message-ID: <2f5d9ec7-9f23-6d22-e1da-9e416d3fecc3@yandex.ru> References: <87blfhjr4q.fsf@gmx.net> <83k0u5mjvf.fsf@gnu.org> <877dq5jp51.fsf@gmx.net> <83im9pmh0v.fsf@gnu.org> <106736d6-1732-3f24-15c5-af7bcfd688c6@yandex.ru> <83blfhmdho.fsf@gnu.org> <247a8edb-7b70-ad32-1ba1-43b5458a82b0@yandex.ru> <838sakmccw.fsf@gnu.org> <83o8jgkrxo.fsf@gnu.org> <83im9okrcc.fsf@gnu.org> <9dcc71f4-1d76-1436-67c9-89d7711af42c@yandex.ru> <83eekckndb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16763"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: stephen.berman@gmx.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 29 20:08:31 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjS3j-0004GR-Hg for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Nov 2020 20:08:31 +0100 Original-Received: from localhost ([::1]:54632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjS3i-0003G4-JP for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Nov 2020 14:08:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjS3A-0002qR-Bi for emacs-devel@gnu.org; Sun, 29 Nov 2020 14:07:56 -0500 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:37991) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjS38-0003MY-Jt; Sun, 29 Nov 2020 14:07:56 -0500 Original-Received: by mail-wr1-x431.google.com with SMTP id p8so12306926wrx.5; Sun, 29 Nov 2020 11:07:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=g0eqX9N90jY4zwrJKZrgSUTq7Zqx5eOM49aDO1Qmdgo=; b=IM6bycLa1EAMtixJycsstcd7I/0a3Qum2UNwo9jeGtMioeZd4Cl6QlpC053FQQV2o4 Qp6CKeZlJ+hQ8LWnhU1mOj88xUTWZsGeXqF1KatdREg3B14YS/u0uF5cHV1CqyiCX5/n JCQLYA8d5aMAnyAembVdSzDgMnmbmydfbHahk5ey37uDpM5aClab+ivw84+Q1yC/Lc2D ea7iJhgkSUHpMbvPlIe6v7EECTdWqkMwqaja+KhZtxKpRPcSdEbIlewyXCbRBylp/sp9 KM5crSofcXEos4mvhrvM6PI1t97Oc7yBlLag+sUO233JBfMLzqQLGNdN1+HIyeAJ05Tg znvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=g0eqX9N90jY4zwrJKZrgSUTq7Zqx5eOM49aDO1Qmdgo=; b=DGz+/YsGCHyqm5AHKYdarUbSyLYnbyTeR6aiOoMMMsc3zQEIQfB4opgPXuFlp+VMti hFbKLKHp8yHTye5KlNIMJRJMTlcua3eQdMKwdr7mjAqu7BSk29uxuwpI+kwGqH1IKxM+ NyEGY7fw9fk4UY1nZSDLUkInYTZLWe0HEe332gGEe0A8WNzIsvRlog4HfF6uIb5c2D+9 adS48tOENAc0rD2IzFnuns+lF74L8L89zWmsoDaRq1tKuwx+1MYOhg78JockPghI1w6Z XOOti0aZO/VCuauqgAl+QGdzqu7PfAVdo4YrSU6XljauLgohLI5A4OYjwIg5W8/gkWA4 fh6A== X-Gm-Message-State: AOAM5315yOApgQiLAikrruajacy/22D6lVPcQbWp0li7Qwj7nwDqYXgn qB5O+dqbu3zaKvETpJzP3JxAkBLJBSkh2w== X-Google-Smtp-Source: ABdhPJynO/nyFzLvplWvIapvsJmIp4dnRKdQiSGMSJCYK4oC2LxMZZ7SucbEx5kc0X/Dosm+57TAvQ== X-Received: by 2002:adf:e387:: with SMTP id e7mr23194945wrm.177.1606676872248; Sun, 29 Nov 2020 11:07:52 -0800 (PST) Original-Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id e1sm2930050wma.17.2020.11.29.11.07.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Nov 2020 11:07:51 -0800 (PST) In-Reply-To: <83eekckndb.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=raaahh@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:260026 Archived-At: On 29.11.2020 20:51, Eli Zaretskii wrote: >> I'm not so sure. LC_ALL=C seems more problematic than -a: >> >> $ grep ф test.txt >> фыва >> $ grep -a ф test.txt >> фыва >> $ LC_ALL=C grep ф test.txt >> (nothing) > I guess this regression in Grep happened when they "internationalized" > the DFA code, sigh... Sorry, I double-checked, and it seems to have been caused by my terminal emulator too: if I set LC_ALL in Emacs and do a search through shell-command or dired-do-find-regexp, it succeeds. You might want to verify this yourself, though. > It almost sounds like we should develop our own replacement for Grep, > one that doesn't suffer from these problems. If we were going to bundle a new tool, we could pick some existing one. Perhaps one that has already been mentioned in this conversation ;-)