GNU bug report logs - #81294
dired-do-find-regexp doesn't find Umlauts

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Johann Höchtl <johann.hoechtl@HIDDEN>; dated Wed, 24 Jun 2026 06:23:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 30 Jun 2026 15:45:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 30 11:45:30 2026
Received: from localhost ([127.0.0.1]:52595 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1weaeQ-0000mG-Ao
	for submit <at> debbugs.gnu.org; Tue, 30 Jun 2026 11:45:30 -0400
Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]:58914)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1weaeN-0000gf-GD
 for 81294 <at> debbugs.gnu.org; Tue, 30 Jun 2026 11:45:28 -0400
Received: from smtp202.mailbox.org (smtp202.mailbox.org
 [IPv6:2001:67c:2050:b231:465::202])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4gqSCK24f2z9v9T;
 Tue, 30 Jun 2026 17:45:17 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1782834317;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=G2uXYMhjbjAmE5/1lNRn/Zu4JfWjzopnKcYJ2WCRW28=;
 b=eqXj5shG9IwL/jNR4FzDhBwZMSOGDoQbkaVGc4WZEFAfyqw45DOxhO1xQzSFRYn/S/G/lC
 T8ejFs61n1AFhvb6fd4eRC3wGYQSFjleIey4CwR3Xjy3yILSwwadzGRdY0Dv8leAGCocYk
 e/TaZTBSSiaI9lJm8r6bRKTF7QFT5MZXChBNeizv0/hObJCKJlp8nWbHbeAQ4w0hjOcNcE
 KBYgeiyYbBG/m43UM/LP0mHWhSSuhmsY7pYiG/dU9SXxYV3snOH6NyDsu6NUIyWiHAalDS
 l5SMF3AI86nWhP6IqhBIHXF6KlpPJkyMuw9kVuybPy09NosXrVYYXFfBQzxvtQ==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::202 as permitted sender)
 smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
In-Reply-To: <86h5mle27u.fsf@HIDDEN>
Organization: LINKOV.NET
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN>
 <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN>
 <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
 <8633ybmc5x.fsf@HIDDEN>
 <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN>
 <864iiqlu1r.fsf@HIDDEN>
 <0d14f806-8a22-43b6-914f-b28408e0f7a4@HIDDEN>
 <8633yalkxo.fsf@HIDDEN>
 <013e56f9-e6da-4dd9-bd12-0d8340e5a5fd@HIDDEN>
 <86a4sdfvf2.fsf@HIDDEN> <87wlvh76i7.fsf@HIDDEN>
 <86h5mle27u.fsf@HIDDEN>
Date: Tue, 30 Jun 2026 18:32:56 +0300
Message-ID: <87o6gs3z3j.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Rspamd-Queue-Id: 4gqSCK24f2z9v9T
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, dmitry@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> So like the existing ls-lisp.el that emulates 'insert-directory',
>> another package e.g. grep-lisp.el is required that emulates 'grep'?
>
> Something like that, yes.  Hopefully, most of it should already exist
> in the shape of multi-occur, so I hope we just need a minor tweak of
> that.
>
> And, unlike ls-lisp.el and find-lisp.el, this is needed not just on
> Windows, but on all the supported systems, including Posix, because
> currently it is impossible to reliably find arbitrary non-ASCII text
> in disk files whose encoding is not the locale's codeset, let alone
> unknown.  So all Emacs users will benefit from such a feature.

I believe there should be existing packages that already do this.
And indeed, I can find at least 

- elgrep: Emacs grep without external dependencies
- noccur: Run multi-occur on project/dired files
- color-moccur: Multi-buffer occur (grep) mode

And probably many more, I didn't perform an extensive research.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 29 Jun 2026 16:33:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 29 12:33:24 2026
Received: from localhost ([127.0.0.1]:38925 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1weEvC-0005Oe-P2
	for submit <at> debbugs.gnu.org; Mon, 29 Jun 2026 12:33:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34680)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1weEv8-0005Nm-Qu
 for 81294 <at> debbugs.gnu.org; Mon, 29 Jun 2026 12:33:20 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1weEv3-0007Pc-0H; Mon, 29 Jun 2026 12:33:13 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=jf+l1IF/A1K2rNsoJWmbXzXa1SI0/ZQFVcDf92ueixU=; b=AaAvMVgkTbu/
 TplO2MJwYVvU/s5KkhLlbJ18xW4OXvz4pGSofrOvFsnh3qQWbNtyepuuHl054zUHO8Ugmm45OzUDF
 VcpPNgojkHRPB0Dgq3JL5D6kEmB26jK4njWrMvgU0MMKy92uS5jdwOcnP18n+KJxCcMslFXFRSxV2
 PYTKLdSztrtDYNNruc9vd0M90798NGGLcC6YqctKeMieGt8vd7IJxopCbeenYARmQ1yRLBLDFEhjc
 m0yXLbP57NYLdgvzN5x3p4kq54UJyitIl848kWNkG0M8T9hYB6G69y7OEvdPlYsYQs6N7p5n9HvLp
 N2A/sPeuDAkMsSyTt6X//g==;
Date: Mon, 29 Jun 2026 19:33:09 +0300
Message-Id: <86h5mle27u.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-Reply-To: <87wlvh76i7.fsf@HIDDEN> (message from Juri Linkov on
 Mon, 29 Jun 2026 18:02:24 +0300)
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN>
 <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN>
 <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
 <8633ybmc5x.fsf@HIDDEN>
 <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN>
 <864iiqlu1r.fsf@HIDDEN>
 <0d14f806-8a22-43b6-914f-b28408e0f7a4@HIDDEN>
 <8633yalkxo.fsf@HIDDEN>
 <013e56f9-e6da-4dd9-bd12-0d8340e5a5fd@HIDDEN>
 <86a4sdfvf2.fsf@HIDDEN> <87wlvh76i7.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, dmitry@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: Dmitry Gutov <dmitry@HIDDEN>,  johann.hoechtl@HIDDEN,
>   81294 <at> debbugs.gnu.org
> Date: Mon, 29 Jun 2026 18:02:24 +0300
> 
> >> >> dired-do-search ?
> >> > 
> >> > No, because it doesn't produce a buffer like grep and occur do, where
> >> > you can review the hits and go to the hit's location.
> >> 
> >> All right. But occur has a different limitation - it only supports open 
> >> buffers. So the command would have to visit all buffers in selected 
> >> directories, run Occur, see results, kill the other new buffers (right?) 
> >> and then by necessity keep the buffers with matches around. Which is not 
> >> necessarily what the user had in mind.
> >
> > I guess we should work on a variant of multi-occur which kills each
> > buffer as soon as the matches are found, and can re-visit the files
> > like Grep does.  My point is that (a) using our internal search
> > facilities is the _only_ reliable way of finding text across many
> > files in unknown encodings, and (b) with all its current
> > disadvantages, multi-occur is still much better on Windows than
> > Grep-based search commands.
> 
> So like the existing ls-lisp.el that emulates 'insert-directory',
> another package e.g. grep-lisp.el is required that emulates 'grep'?

Something like that, yes.  Hopefully, most of it should already exist
in the shape of multi-occur, so I hope we just need a minor tweak of
that.

And, unlike ls-lisp.el and find-lisp.el, this is needed not just on
Windows, but on all the supported systems, including Posix, because
currently it is impossible to reliably find arbitrary non-ASCII text
in disk files whose encoding is not the locale's codeset, let alone
unknown.  So all Emacs users will benefit from such a feature.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 29 Jun 2026 15:32:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 29 11:32:24 2026
Received: from localhost ([127.0.0.1]:38722 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1weDy6-0007S9-9I
	for submit <at> debbugs.gnu.org; Mon, 29 Jun 2026 11:32:23 -0400
Received: from mout-p-201.mailbox.org ([80.241.56.171]:55474)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1weDy2-0007Qv-1G
 for 81294 <at> debbugs.gnu.org; Mon, 29 Jun 2026 11:32:15 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4gpqyY0wScz9th7;
 Mon, 29 Jun 2026 17:32:05 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1782747125;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=OVysLehm2Hz3dCTlComro/WzKPTyFsE4dtbJVxff2tI=;
 b=EXUbLQlCfJyCux2HxFqKVGkqBcPseatkaNSLI3IOWPUNZMJZVVDjGSvfEtTwxJ98Owbi5Q
 sFlUGRtihg/eMKIx6pIH6IqoD9+J/1Hmt7xrr9HfqlgPIIXMpdiQYc9awMJS0ivff4QfN5
 hN3wU0lKNMDqEznjlMD9cZAWBF06Fr5cmFNe248roilFwYHKIp+u8FRNatFMInAa0+GdWZ
 WB6jbKkQWnzV0RgaePH7Vo6KRw2ymFVovsSA0OOs1xPKhL5BCr4pwsoBUE3pvBGHVHhhQ5
 KvxXTuJR+sUoU8ifvDukBgx2nGAMIIogcXNO2aHA4PmAunqOjuMeKZiZ4YvvMw==
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
In-Reply-To: <86a4sdfvf2.fsf@HIDDEN>
Organization: LINKOV.NET
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN>
 <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN>
 <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
 <8633ybmc5x.fsf@HIDDEN>
 <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN>
 <864iiqlu1r.fsf@HIDDEN>
 <0d14f806-8a22-43b6-914f-b28408e0f7a4@HIDDEN>
 <8633yalkxo.fsf@HIDDEN>
 <013e56f9-e6da-4dd9-bd12-0d8340e5a5fd@HIDDEN>
 <86a4sdfvf2.fsf@HIDDEN>
Date: Mon, 29 Jun 2026 18:02:24 +0300
Message-ID: <87wlvh76i7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, Dmitry Gutov <dmitry@HIDDEN>,
 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> >> dired-do-search ?
>> > 
>> > No, because it doesn't produce a buffer like grep and occur do, where
>> > you can review the hits and go to the hit's location.
>> 
>> All right. But occur has a different limitation - it only supports open 
>> buffers. So the command would have to visit all buffers in selected 
>> directories, run Occur, see results, kill the other new buffers (right?) 
>> and then by necessity keep the buffers with matches around. Which is not 
>> necessarily what the user had in mind.
>
> I guess we should work on a variant of multi-occur which kills each
> buffer as soon as the matches are found, and can re-visit the files
> like Grep does.  My point is that (a) using our internal search
> facilities is the _only_ reliable way of finding text across many
> files in unknown encodings, and (b) with all its current
> disadvantages, multi-occur is still much better on Windows than
> Grep-based search commands.

So like the existing ls-lisp.el that emulates 'insert-directory',
another package e.g. grep-lisp.el is required that emulates 'grep'?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 29 Jun 2026 11:17:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 29 07:17:20 2026
Received: from localhost ([127.0.0.1]:35848 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1we9zL-0002V6-Nc
	for submit <at> debbugs.gnu.org; Mon, 29 Jun 2026 07:17:20 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50834)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1we9zJ-0002Uk-1Y
 for 81294 <at> debbugs.gnu.org; Mon, 29 Jun 2026 07:17:18 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1we9zB-0000aA-9I; Mon, 29 Jun 2026 07:17:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=WYiFNfvajy3QvhBWtrxdLLlfS+a6Up1YPx8VG+uM5As=; b=mKi3F2jCB1eF
 nJXGsZUGwsGzw/itbMRn3kiE4BSg341CxPKXNk6SPV/0fU3aSmxlupUdscSG2aPnSwd5H45nDsEwB
 U31kWYYLl9ENkNafiXXvdXcCTjgFYsiK/mD+dYDfzNVUHXofhQyZHUhVx+JDg4FVL7S4zO9vRflql
 hSC64732YcM9mLPFzyn5Xgf6gcFrFJTzzBnG1G40wQe3T7K1mHuhnA0zKgkiGiPZXxMKXJ4D7oYfo
 toA8lGVq6Kkpxz9pUMzRVDGVNsfJCMu+9JrYTD708DlkeBt/ATiQh9B78bhz0nKC8AMB3og4VZgPm
 TDW9TK0Q3aS6K66VLh2Ofw==;
Date: Mon, 29 Jun 2026 14:17:05 +0300
Message-Id: <86a4sdfvf2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <013e56f9-e6da-4dd9-bd12-0d8340e5a5fd@HIDDEN> (message from
 Dmitry Gutov on Mon, 29 Jun 2026 06:37:18 +0300)
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN> <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
 <8633ybmc5x.fsf@HIDDEN> <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN>
 <864iiqlu1r.fsf@HIDDEN> <0d14f806-8a22-43b6-914f-b28408e0f7a4@HIDDEN>
 <8633yalkxo.fsf@HIDDEN> <013e56f9-e6da-4dd9-bd12-0d8340e5a5fd@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Mon, 29 Jun 2026 06:37:18 +0300
> Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> >> Perhaps we could document the benefits of using the UCRT builds.
> > 
> > I'm not sure it's our job to do so.
> 
> If UCRT versions are available for most people and they support the 
> feature that would help, it might be wise. Or not - I'm happy to concede 
> to your experience.

I have zero experience with running Emacs linked against UCRT.  I know
that certain features of latest Windows versions, like the one
discussed here, are only supported by UCRT, but I don't know whether
just using such a build solves the problems or not, and I don't know
whether a UCRT build has problems that the MSVCRT one doesn't.
Someone who knows about that should take the lead, but we don't have
on board experts on that configuration of Emacs.

> >> dired-do-search ?
> > 
> > No, because it doesn't produce a buffer like grep and occur do, where
> > you can review the hits and go to the hit's location.
> 
> All right. But occur has a different limitation - it only supports open 
> buffers. So the command would have to visit all buffers in selected 
> directories, run Occur, see results, kill the other new buffers (right?) 
> and then by necessity keep the buffers with matches around. Which is not 
> necessarily what the user had in mind.

I guess we should work on a variant of multi-occur which kills each
buffer as soon as the matches are found, and can re-visit the files
like Grep does.  My point is that (a) using our internal search
facilities is the _only_ reliable way of finding text across many
files in unknown encodings, and (b) with all its current
disadvantages, multi-occur is still much better on Windows than
Grep-based search commands.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 29 Jun 2026 03:37:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 28 23:37:31 2026
Received: from localhost ([127.0.0.1]:33294 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1we2oM-0001d5-CF
	for submit <at> debbugs.gnu.org; Sun, 28 Jun 2026 23:37:31 -0400
Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]:55177)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1we2oJ-0001cN-IW
 for 81294 <at> debbugs.gnu.org; Sun, 28 Jun 2026 23:37:28 -0400
Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
 by mailfhigh.stl.internal (Postfix) with ESMTP id ED7FD7A0109;
 Sun, 28 Jun 2026 23:37:21 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-03.internal (MEProxy); Sun, 28 Jun 2026 23:37:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm3; t=1782704241;
 x=1782790641; bh=0EogDF7mRL2Hz1cSaT5+HnQPaS/FHZy0VjbaR4VVaUQ=; b=
 mRPFK7TPvIaEyvvQPtuXof7YmepahVVXRGJH6Jnf2AGGHoz4tPTLipnXl3Za9Rf3
 N5m7OJryGsjc1ZJIxcNVNfSXRjB/bcmT6xLYRizQvmAT5CIcLvdf3jgmqlTFC7pP
 lMpRhDYrBrqn37O/MF3NGezM+gPvAWOZalenu4Q+F0b9BOByjepuNopypSfEzrTe
 4zuS2/lxW8bW2m8nGfP1OP0AP2TtExvsr/aOV+3QBN/Xc1gkz3k2AaCaFwHu/UBO
 n1jant3ASSCBYFEXcqkVJHewGvw/QwN+K2tgQjub782Puqerp6UusjPzM+ARQIsc
 O1sGR2QEMNLdWcUJoRdBlw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1782704241; x=
 1782790641; bh=0EogDF7mRL2Hz1cSaT5+HnQPaS/FHZy0VjbaR4VVaUQ=; b=K
 Lg2OyjIe43qdPKcuBYrf902gk3yxQ7h4bGeCYIsMmgqN6QVI1qwpt+pjHQKoM5Ha
 JcGmFo4chjHFfNhB5Nnjpsr0Y2WH0ZcssXqWuITzdq1SpGlhgoxy6SiYrzJI4yKv
 iM1O3cKev2nvBUna1ryzerl/NAJmCkY88yo2G9+J9vlq9NijqQa3H8fjBXor9QB9
 2BeNtfkcIs7nqO8Jdrqu8QSu84Nh1fn+XcFRP5Vu3rpu/RHMnxO17DRhWGfOImpf
 0KaFrFLwWWlPi/s8s2ctnJy6welD/rmDBS8G2Sekzlucwb0jQSEnz2GKA8egJPUb
 sNb5BU2M4lHVuC60Udkyw==
X-ME-Sender: <xms:cehBam6cXvj7bOkFtkAnulSQK81KniJ5Yczs03ELcNPEr52WRZvsPQ>
 <xme:cehBanVmDQzGAVB5FFPXuTBUFh_jIFXNo3YQIiS8sv5aUzXtYPIYTFFGT20AaNntb
 h_MJEHiq36X0cNxsfInAqvR0CW-olviQ_xNAgzY-6dlQBQz35p5GaY>
X-ME-Received: <xmr:cehBai3GG0pCeK2LtonHtLiouHS4Dhs0O05ybHM28O5falhB9Y30xsFRYgAh4owaNDrl>
X-ME-Proxy-Cause: dmFkZTExrPvPVckRjGlBYiHOv3gEMdf54geiBYRsZsfyrUA+f1kzPVeJljmxcZnxDnsgw8
 nPZFGmN+yzcqLDxdAzydAUm9LInpMoQC2PhjsB5Lt8hFC0IrPrLoI64e2RBwVzDmpWYeVk
 TMiszhULT6VREZ6FhwulGLcnnsfoc+M21bONkN7VjQO2HOOIuXQHm5Fd9Ytc+4MHvlPwc/
 c+C+X9MA5GF8bNqvt4I7vUCdp/jxAldoN+G4nkx+lhRhxDcYn79680ADE+s80hGh3l98UH
 6s4ynbgn3lQkOzBl/VexD5D+W+8i34zaDmKGvnMt1chpUr1YoEqc/xq1b1WWrzbTQFP5gY
 2Uo9PDi0lwOZdn370W6ZrEiWT5u44kPOr/B890n44sAtrcGNcp0kmfcdsGmGgjjgvme0HA
 T8JOA80VPGP81sH9eo2WdVemkIS3NmI1rfuCO8mas8rTUcqWwIMwebFmyi8HwXUrqIwSp8
 tT+XxY3HSkz8LNZwHJUINMDoir9whdDd/nLySgsBfXuAIBWou1wivHiEEHY8yNT5FCwkz+
 zchUyEQYtrm7dcY2utfCT2Mu8tP3wKcMqP4slflPHEXGEU9f83LjiSbdkhQugGXIgIge6i
 YLrXgdOjUI7c0Oa7u/7lJ7Yvr5Pzbxg/bW14cQCCcBBzWtHDJv91Y4zsWDoA
X-ME-Proxy: <xmx:cehBas1SJiIZeTyGpbpAICjYdrXk_PKiPqZhG4YQ2To5zt-9mdJ5Ow>
 <xmx:cehBat_qEn6gMQdO9hLFhXpI8nPhzYLFHTaQj82EAQzFRTRG923hLg>
 <xmx:cehBah3cN5-YjYD6851H0FUwJ1O4Dkgoq2XXIjuqnYvbeqXt0BNpHA>
 <xmx:cehBai_QGXkqeg0yhEuvAXrv8rrr_SzMHQNpLpnE3JTQYf_Czzw6Ow>
 <xmx:cehBarChhyCLAeJeuGnI3aDEGTumnxm85lyqKmZQceYPNZQO7BUQ6HOP>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 28 Jun 2026 23:37:20 -0400 (EDT)
Message-ID: <013e56f9-e6da-4dd9-bd12-0d8340e5a5fd@HIDDEN>
Date: Mon, 29 Jun 2026 06:37:18 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
To: Eli Zaretskii <eliz@HIDDEN>
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN> <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
 <8633ybmc5x.fsf@HIDDEN> <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN>
 <864iiqlu1r.fsf@HIDDEN> <0d14f806-8a22-43b6-914f-b28408e0f7a4@HIDDEN>
 <8633yalkxo.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <8633yalkxo.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 25/06/2026 18:05, Eli Zaretskii wrote:
>> Date: Thu, 25 Jun 2026 14:53:16 +0300
>> Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
>> From: Dmitry Gutov <dmitry@HIDDEN>
>>
>> On 25/06/2026 14:48, Eli Zaretskii wrote:
>>>> I wonder if the MSYS/MSYS2 versions of grep might behave better.
>>> They have separate ports build with MSVCRT and with UCRT, AFAIK, so
>>> the problem should be there as well, when the MSVCRT ones are used.
>>
>> Perhaps we could document the benefits of using the UCRT builds.
> 
> I'm not sure it's our job to do so.

If UCRT versions are available for most people and they support the 
feature that would help, it might be wise. Or not - I'm happy to concede 
to your experience.

>>>>> Is this what we want to recommend to our users on MS-Windows?
>>>> If not, we might have to devise another fast solutions especially for MS
>>>> Windows users. I hear the projects on that OS don't really get any
>>>> smaller than elsewhere.
>>> I think we should have a Dired command that would call multi-occur on
>>> the marked files.  That's all Windows users need to have a reliable
>>> multi-file search facility that groks all the encodings and scripts
>>> supported by Emacs.  Grep-based commands is inherently unreliably even
>>> on Posix systems, and on Windows more so.
>>
>> dired-do-search ?
> 
> No, because it doesn't produce a buffer like grep and occur do, where
> you can review the hits and go to the hit's location.

All right. But occur has a different limitation - it only supports open 
buffers. So the command would have to visit all buffers in selected 
directories, run Occur, see results, kill the other new buffers (right?) 
and then by necessity keep the buffers with matches around. Which is not 
necessarily what the user had in mind.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 25 Jun 2026 15:05:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 11:05:55 2026
Received: from localhost ([127.0.0.1]:33621 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcleK-00015p-AX
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2026 11:05:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35156)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wcleG-00013x-2v
 for 81294 <at> debbugs.gnu.org; Thu, 25 Jun 2026 11:05:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wcleA-00052y-Fs; Thu, 25 Jun 2026 11:05:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=A8AHhRW6i3pS39T6kX9T1nWVzBHy5wnDyNd/w5y83TI=; b=WdjfVu4i13gQ
 f39Ecm7h6KifXPZnHus3Uck81rKkB3zJFNyS6btM/YH2GIgt/aqnJEgzsjeypFXlSuR5+dhx1R4jV
 GuctBREHDLu4S2l7FyhGbW8Qm96NP/7HIpuqgO60HtzzFgzoE35GzOS9Ym6fbAyAgEWJv7vbq/k3Y
 HsPYcFo43L8ne4QngtoAk0XeHKkKqwJUxWtBnvbfSoLJC0ulPMNw0g1M/yeTMtTzc6iMDZ4XrVADM
 Uyb0wy4u7/u3k+nUT5gqO94tgwSL3Ty/epxOUDfdLLCirYFHjaw8l+YNS5YT7gRiWyQD0DA9pIdx2
 9E65ikLLH0pqw5iK66r99A==;
Date: Thu, 25 Jun 2026 18:05:39 +0300
Message-Id: <8633yalkxo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <0d14f806-8a22-43b6-914f-b28408e0f7a4@HIDDEN> (message from
 Dmitry Gutov on Thu, 25 Jun 2026 14:53:16 +0300)
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN> <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
 <8633ybmc5x.fsf@HIDDEN> <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN>
 <864iiqlu1r.fsf@HIDDEN> <0d14f806-8a22-43b6-914f-b28408e0f7a4@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 25 Jun 2026 14:53:16 +0300
> Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 25/06/2026 14:48, Eli Zaretskii wrote:
> >> I wonder if the MSYS/MSYS2 versions of grep might behave better.
> > They have separate ports build with MSVCRT and with UCRT, AFAIK, so
> > the problem should be there as well, when the MSVCRT ones are used.
> 
> Perhaps we could document the benefits of using the UCRT builds.

I'm not sure it's our job to do so.

> >>> Is this what we want to recommend to our users on MS-Windows?
> >> If not, we might have to devise another fast solutions especially for MS
> >> Windows users. I hear the projects on that OS don't really get any
> >> smaller than elsewhere.
> > I think we should have a Dired command that would call multi-occur on
> > the marked files.  That's all Windows users need to have a reliable
> > multi-file search facility that groks all the encodings and scripts
> > supported by Emacs.  Grep-based commands is inherently unreliably even
> > on Posix systems, and on Windows more so.
> 
> dired-do-search ?

No, because it doesn't produce a buffer like grep and occur do, where
you can review the hits and go to the hit's location.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 25 Jun 2026 11:53:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 07:53:32 2026
Received: from localhost ([127.0.0.1]:60135 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcie9-0008Lu-Mc
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2026 07:53:32 -0400
Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]:57397)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1wcie4-0008L9-Hj
 for 81294 <at> debbugs.gnu.org; Thu, 25 Jun 2026 07:53:26 -0400
Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49])
 by mailfout.phl.internal (Postfix) with ESMTP id 29E4BEC03C7;
 Thu, 25 Jun 2026 07:53:19 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-09.internal (MEProxy); Thu, 25 Jun 2026 07:53:19 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm3; t=1782388399;
 x=1782474799; bh=Wl8rFU/n6hD4ftrKjzNXlNImTUaw2IACsHog3QtMv5I=; b=
 l3BICxyizeYxJG1egCmsqdHxeIFjxbr49iGUhpRjPRU0/phXyFpbl5QFpvRnOvSW
 AD8QqXaqCVgj48+3wU1DVD87vqRkf3p8Ifwp0Syvc2bHVjyWyUmo+mhF927vmpi9
 L1N2OiKlgoG/BmmYdyPF9L2xzdIKDPw3QWwJqGk72wWscQvNKmv4GYenKIOsgbnB
 rU6IIW632gzf0s9pdNwyeIo0xOC+39j4FoIY1MlS/giO81sQwx0gD2iMJeVgfbmq
 n9cVyOx4S7Lvm0QMLHS/YzC80257EeqqW3FnpP8FQN1PZ1y0KWh0VL0O61qSX+53
 aS9hRRxKdTCeTcNwCXoCQg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1782388399; x=
 1782474799; bh=Wl8rFU/n6hD4ftrKjzNXlNImTUaw2IACsHog3QtMv5I=; b=O
 0xyu4MOieUCCQnJ5adFA0jErgv+Lvc0Cs+hYs/0RFu3UbJ2KzRPp7GT04kdzCFVT
 KYir5E0Cxi3Bevks5JjwMFchGIdBE/m0Px0TEE7gFd+tITmu5ChKQvPTLpjTiKjx
 0/YTgQPxDhENfAZr8C3nXwEdHWsB67NyxWRdAvxthpMYqB6mzc1eQHFxQIWXVkmN
 sYmOdNp0vmF6mbUkkfvWnVlQk4F93nKFeZbXOlqtJoHFX6RkIdQolwOITArr1VpZ
 NGlh8k+A8Ns8DSOcF/FYagTUyK5Z7STvqyw4bVeXqtIWDwtmRNp9vrzrbwZ2pCaZ
 TQ6Tg3ZZ8Q/ueLuJmBRKQ==
X-ME-Sender: <xms:rhY9argfrgXg86qosd4pDAX04ESaGoOgJyuuKRHsPTNdXVlvd_N9bw>
 <xme:rhY9avfIFFtD1pIc4Mis8gi1jNb8oyOrp7iMLZNWTuPemgSunDBaVUJpVws1zp-o9
 itXpw_sudUtcvs8SYnZSmHWxpZ7rc5hOsPXGM65G9tLJl5nnoW28ug>
X-ME-Received: <xmr:rhY9aoeDmR4f_y3rgbeGwBn1uV_kBKDiT4QKFin1z32IezQxR_6NCHGNKFQrV8cpSOSt>
X-ME-Proxy-Cause: dmFkZTG1xJh6oqQzkh3Af32UfRq1bQHGDQkNwLzWyCIil6KNf7FYNeYKrdUh/HY7QybbAr
 WUn4qPOWSCg7VcECqWLS8NbkEPYHLENYmk4VwAwAUeOP+bsD+AJKlJLxo0Z7B+EXoPvMvt
 pzWuVUUEKA9AQJWPvD8VaeQWOvuCKLS2zuX1lyGcVUgH+qMXBJ0zBk8VW3N4f+jD+K+v9m
 RseT2NX1Wtclrct54HRM0rs+MLVO3c9LPuaJqR6nwDjI+EHsSYZZWYv7LU5om6PTsodwLj
 meAChg3CLEePD1oZ1QPiQTPR8Yef6I4GFapwFZvlFbBLfbDhQK8L7MzzdlCN36Zx5d8PMt
 4hj2crAamTcVADoBhX/xTXSqQxhJjWpnjmHTIGg6Zz+OU7ZVs6yF9r3IBV7IhzEAH+aXA3
 IsoQgVmgR3drYt35MgIebq9xLVv8TMB57B8m24jN0TmTFEXeTnJaqD3NrrWx75Cn7xNjmm
 9RMzY8CXr9T3UqhWTuB1tfApntdgfEqmJJC9z/Ir3XhsiQ5wBQjYdWAkBsV5/MlQMwMtAO
 AE5tC3VjEVW4cniJ3urqcqqbMBGbVJ8QSl6wmdsKF2pKvnpp5ruNZ+DY3ag8pdel2ZmrV0
 vZTDumh6Oe6e40uDML7P3hBY6H/JpyuYOn6THY5f1IJXrgEANFe46wXYipOQ
X-ME-Proxy: <xmx:rhY9ah_Oxi4pq0zZjWtfp4K6X0z6LpOpP6s61bACkg-5rwwYrf3xTg>
 <xmx:rhY9askYy9h-IUCSNBxf_US5oddb90s1ZefQrCFSa7uIRKM0zqKZ5A>
 <xmx:rhY9ar-km_gKwQ1BqtiPRmsUa2yGUtm7FfdB1n8Fr46gb4yAOFdjnw>
 <xmx:rhY9ainJL6BEtGXIZGsbxGGCT52vHuqDTvYj483oCm9LBGFGHuCvGA>
 <xmx:rxY9anKkL3OPzPPucUya5JYeFzwY5W2xP1B0GDUP613f6b5p64iIfBYe>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 25 Jun 2026 07:53:17 -0400 (EDT)
Message-ID: <0d14f806-8a22-43b6-914f-b28408e0f7a4@HIDDEN>
Date: Thu, 25 Jun 2026 14:53:16 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
To: Eli Zaretskii <eliz@HIDDEN>
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN> <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
 <8633ybmc5x.fsf@HIDDEN> <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN>
 <864iiqlu1r.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <864iiqlu1r.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 25/06/2026 14:48, Eli Zaretskii wrote:
>> I wonder if the MSYS/MSYS2 versions of grep might behave better.
> They have separate ports build with MSVCRT and with UCRT, AFAIK, so
> the problem should be there as well, when the MSVCRT ones are used.

Perhaps we could document the benefits of using the UCRT builds.

>>> Is this what we want to recommend to our users on MS-Windows?
>> If not, we might have to devise another fast solutions especially for MS
>> Windows users. I hear the projects on that OS don't really get any
>> smaller than elsewhere.
> I think we should have a Dired command that would call multi-occur on
> the marked files.  That's all Windows users need to have a reliable
> multi-file search facility that groks all the encodings and scripts
> supported by Emacs.  Grep-based commands is inherently unreliably even
> on Posix systems, and on Windows more so.

dired-do-search ?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 25 Jun 2026 11:49:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 07:49:08 2026
Received: from localhost ([127.0.0.1]:60123 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wciZs-0007tc-W0
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2026 07:49:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45250)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wciZm-0007sR-C1
 for 81294 <at> debbugs.gnu.org; Thu, 25 Jun 2026 07:49:02 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wciZg-00027V-Lm; Thu, 25 Jun 2026 07:48:52 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=jmRo2Ehd1xK5VmXhv9LbyxVVwxFCu/QYcjjvM66yRdk=; b=sPx/QchGEtqGJGmGfTAm
 vY57AJcDHhfUKGhbkGf9B/Ac0qa5aW3M0orpjlmpLZBQkLbW1psyaE8eX4CA3/R1Ol7FZJXtHyWdb
 a2eNObgPquoCEXmUqZDXWa2a740RIuuT9HZCia+Xa39zw7Cxjie1dsy7PNrNsOmbAR2lAZ5curMYX
 2xH3X0jyxyPyLvjBH7U5Y4eC0i30Xbk+BE1Fbw7ovyTe9F+VVbUhjTd+2IxH0Kv0GGx14Hr6Cxin2
 BhDzvGao1Z36oW+VaBV5V4gE8seBMEtoE6869GyTv2EsDjAh8dVddm9PuFu4rdAYKIqY4SXTIBs2O
 3HtllNbDCwmVcQ==;
Date: Thu, 25 Jun 2026 14:48:48 +0300
Message-Id: <864iiqlu1r.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN> (message from
 Dmitry Gutov on Thu, 25 Jun 2026 14:36:02 +0300)
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN> <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
 <8633ybmc5x.fsf@HIDDEN> <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 25 Jun 2026 14:36:02 +0300
> Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 25/06/2026 08:17, Eli Zaretskii wrote:
> >> Date: Thu, 25 Jun 2026 05:12:25 +0300
> >> Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
> >> From: Dmitry Gutov <dmitry@HIDDEN>
> >>
> >>>> Or turn the search input into a byte sequence
> >>>>
> >>>>      grep -nP $'\xC3\xBC' file.txt
> >>>
> >>> AFAIK, this only works on Posix systems when using a Unix shell,
> >>> because it's the shell that interprets these escapes.
> >>
> >> Could this work instead?
> >>
> >> grep -nP '\x{FC}' test.txt
> >>
> >> Tested it here on GNU/Linux, and Grep does interpret the escape in my
> >> environment.
> > 
> > It doesn't work here (doesn't find anything).  How did you verify it's
> > Grep that interprets the escape sequence?
> 
> It only works with -P but not -E or -G.
> 
> > And where in Grep
> > documentation or sources do you see the description of this
> > functionality?
> 
> 'man pcre2syntax' mentions "character with hex code"

I guess pcre I used was older than needed here.

> > I'm aware of the speed advantages, but in my book correctness and
> > reliability trump speed.  E.g., my port of Grep is linked against the
> > old MSVCRT runtime, and it cannot even cope with UTF-8 encoded files:
> > 
> >    d:\usr\eli\data>grep -nP "berle" umlaut.txt
> >    umlaut.txt:1:Ãberlegung
> >    grep: writing output
> >    grep: write error
> > 
> > (I can explain why that happens, if someone is interested in the gory
> > details.)  So only Grep linked against the newer UCRT runtime has a
> > chance to even work without aborting early.
> 
> Is that from the ezwinports collection?

Yes.

> I wonder if the MSYS/MSYS2 versions of grep might behave better.

They have separate ports build with MSVCRT and with UCRT, AFAIK, so
the problem should be there as well, when the MSVCRT ones are used.

> > Is this what we want to recommend to our users on MS-Windows?
> 
> If not, we might have to devise another fast solutions especially for MS 
> Windows users. I hear the projects on that OS don't really get any 
> smaller than elsewhere.

I think we should have a Dired command that would call multi-occur on
the marked files.  That's all Windows users need to have a reliable
multi-file search facility that groks all the encodings and scripts
supported by Emacs.  Grep-based commands is inherently unreliably even
on Posix systems, and on Windows more so.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 25 Jun 2026 11:36:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 07:36:21 2026
Received: from localhost ([127.0.0.1]:60098 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wciNV-00062l-3N
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2026 07:36:21 -0400
Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]:38947)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1wciNO-0005zT-Ar
 for 81294 <at> debbugs.gnu.org; Thu, 25 Jun 2026 07:36:14 -0400
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
 by mailfout.phl.internal (Postfix) with ESMTP id EE748EC0322;
 Thu, 25 Jun 2026 07:36:04 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-05.internal (MEProxy); Thu, 25 Jun 2026 07:36:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm3; t=1782387364;
 x=1782473764; bh=g3I1fjwMPswuKDLhgo7gC5kJdn3uz2PsqkzMMaZ7dBE=; b=
 R1CYJW3K2P20810hJNdbu4CPb5+7gtiGt7Ybe+Z1UjO15qL0o0vr+NHIM7gq03aK
 poUnf3kdJGyJQBqhWLl1xZPIt0XZKHWSqn35r7BNIFaJ/j40QMmZL2xKMAz82mV4
 qExX3Q2sGlSEgeMEsb2kXmAHHwwjOIu1Y5h4zMeDq+aVMOEvTwJ0tHTVvwYhZLiL
 qf34zEOBiYgeU/bpVmMok5qDPtJbdHt0IaNgdM8L2+5cjP1csXiS1WeoyeX5QwrH
 1txGHFfrI5DqXHNd8DiurfPNhDbMKN64xK1nAL/fB5ohjTD+BBjjeVr22vM8NL4/
 cpVWVt9mH/P4VK0IWPMtfg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1782387364; x=
 1782473764; bh=g3I1fjwMPswuKDLhgo7gC5kJdn3uz2PsqkzMMaZ7dBE=; b=A
 TuWjCCMfzD7iGs6IB/Gqp/bp5PG6LTwKyrb2SuDiai4frw2wfYwJ+/WhCLf2Tv92
 rosKoNAu6EJ4DLlZG70LXwR80QNVv4fUOUMBRGbxkKK1c843cAMCm29cXlw2gdwm
 sWTvJtXRrSzfO3Q+sZSviRl1ZVYc1d+qniENDiQx7nAJQAIXLrW6QjJKhUYSVWVp
 ECLGVNl7tWm9lRvn/X1y8ns63Fqena6QrythR9HNUXtUB40CzgcbmArhcSMYMwsi
 jJaxO1KXnVjaGxueDOvP0Mx2Ja/qLN8h06EpBUzt2148JqWchIH/ZQO8JW/+xjmL
 R0eLfXZ6eZ5cxomKQNIUw==
X-ME-Sender: <xms:pBI9augQk4LTfFuhprDbM8sedsWlkj6dzvIh9JigiKnelGUA4rFUgQ>
 <xme:pBI9ameagDEPk38n3YHfmKw7kKrEGhJ_ZToXAmgPstz5jEW3hbbOaTMp3JVIIPyZt
 BIxhUJCDobd1qMDQTaNp2YrrO1RFcahtVf1kWOyUwtYtQcLFQIx8h0>
X-ME-Received: <xmr:pBI9ajdQ7HvG6ylsr0mTDi63jPtDzJ-mqCPBNygjGrupGho1r4WbELfMMT_QRdCQUUN5>
X-ME-Proxy-Cause: dmFkZTGDa8sprl4SQQnH8er9c7uhnQW8pTKAnfoZI67KNzQvyH4pHvjJUOfHNx0Kf8lbmN
 HjE/zFzNilzVt8SEiICSsTAHg/bGzZnICDfXJ4xygUqqDjZaDxC/h7QRIFHmXOvFhjDsYy
 2wk7rFpuQVFmAz1/sLSN+LDZYGweeFItnVY+udXOyDVFu5sGaaxWAFSbZxRYIL5S9lvtkg
 RF3my2uyEoW1XexGqKDm1kxKwxymNS2u8mTtKeNxj77biDaWuZ8WZOf1NiRQ7/W+oKRYGS
 VDOOVPUdWvGZkaZtw/RK2aZaarTbW6TvA0ryjb0qyQqRQUPIotLNJXp1vFd47KxQ1ZmZCI
 l/eM0mTnsI1lt9YZsutRe38sycFhU3bJqLTvnbkm+MeiVHa4jU37TV2elJ3B/kcBbgUTGn
 CQOx2DxHdEQAouBqI9HOko1u2EQPmNq8b6u41foG4ZfMOybCuTslGW9fz+0H5X+3OZFa4W
 odA3HCZGdEpQThusjy7EiR78K1/ihAvLBHPVEztAb/VopXbCBMu+1fGmAXGWIjrKu48sOy
 lxtjmfwDKLbkuhfCcLiUB0ccy595n4tto2hQo6+S61aJLchyOZXdfxo2vzSgvabICEjQvg
 B6ujwPDXO8JRjKx9u8TUfbSiKSAvZkAhr0bI+h+KKIwkS7zbIzMUvJMnzi0w
X-ME-Proxy: <xmx:pBI9ag8VLqErOjYdg1YgDqCyeCn0DmBvHsLHqyroqB68xZxXx281IA>
 <xmx:pBI9avnsv90EwlM5Hh8sz_Zx7gtvDBqeqGj0rQSbe0Lu0iUHKyNIVg>
 <xmx:pBI9ai8dvUfhHl7wU5O7YwS9e0NAqS6fe5VnaA_uzF2WnconNZ9EtQ>
 <xmx:pBI9atmw5Ip-zPypd6G5GSUpI4_epbipD_1z2-uywgSdxPMeqqR8ew>
 <xmx:pBI9auIjTzFRf0o8DRHv2X3e0I9eckjWuxrj9sSpchxDvJRsIwHdUHfv>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 25 Jun 2026 07:36:03 -0400 (EDT)
Message-ID: <b03797f3-2d95-4d45-9a71-d821ed862d43@HIDDEN>
Date: Thu, 25 Jun 2026 14:36:02 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
To: Eli Zaretskii <eliz@HIDDEN>
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN> <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
 <8633ybmc5x.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <8633ybmc5x.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 25/06/2026 08:17, Eli Zaretskii wrote:
>> Date: Thu, 25 Jun 2026 05:12:25 +0300
>> Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
>> From: Dmitry Gutov <dmitry@HIDDEN>
>>
>>>> Or turn the search input into a byte sequence
>>>>
>>>>      grep -nP $'\xC3\xBC' file.txt
>>>
>>> AFAIK, this only works on Posix systems when using a Unix shell,
>>> because it's the shell that interprets these escapes.
>>
>> Could this work instead?
>>
>> grep -nP '\x{FC}' test.txt
>>
>> Tested it here on GNU/Linux, and Grep does interpret the escape in my
>> environment.
> 
> It doesn't work here (doesn't find anything).  How did you verify it's
> Grep that interprets the escape sequence?

It only works with -P but not -E or -G.

> And where in Grep
> documentation or sources do you see the description of this
> functionality?

'man pcre2syntax' mentions "character with hex code"

> I'm aware of the speed advantages, but in my book correctness and
> reliability trump speed.  E.g., my port of Grep is linked against the
> old MSVCRT runtime, and it cannot even cope with UTF-8 encoded files:
> 
>    d:\usr\eli\data>grep -nP "berle" umlaut.txt
>    umlaut.txt:1:Ãberlegung
>    grep: writing output
>    grep: write error
> 
> (I can explain why that happens, if someone is interested in the gory
> details.)  So only Grep linked against the newer UCRT runtime has a
> chance to even work without aborting early.

Is that from the ezwinports collection?

I wonder if the MSYS/MSYS2 versions of grep might behave better.

> Is this what we want to recommend to our users on MS-Windows?

If not, we might have to devise another fast solutions especially for MS 
Windows users. I hear the projects on that OS don't really get any 
smaller than elsewhere.

>> Unless we can detect the set of encoding that the project uses from
>> somewhere and apply that in our search. E.g. if we can already open
>> buffers. Or read .gitattributes and see if 'working-tree-encoding' is
>> set for certain paths.
> 
> Git doesn't really care about encoding of text, only about encoding of
> commit log messages.  And the problem is much more general than just
> files under Git.

Yes, it would only be a supplementary source of information, and only 
when available.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 25 Jun 2026 05:17:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 01:17:53 2026
Received: from localhost ([127.0.0.1]:59117 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wccTE-0000g6-R0
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2026 01:17:53 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47082)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wccT7-0000em-9Z
 for 81294 <at> debbugs.gnu.org; Thu, 25 Jun 2026 01:17:45 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wccT1-00040g-Or; Thu, 25 Jun 2026 01:17:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=jtBWYY4knhMkagvZnERVoOtXpfp/rjHILAw9DaA3/gU=; b=c1qKbHJSnGa8Dcbpzsw7
 lGHRhM3VTiwl+HNYw8I+MogbeLlyaPYJOFwhnjxTgX39l02iq6BgcwGXsJJIMK6WPfKpO22zjSQ50
 ZmRbQoLd9l9+00cjQufid1on9yEhCe/lqXwhu6EzX5/UwcfPe3gWfTAKCMg3Lk2qXSS5rlw8S9K3x
 eGkySnySnHHIf7MCHnXQ4DMOS1pFHRuggAKbI7/HCoRsBvNT96ZrkO9VookJq6tbCxEj8ZKZLFffY
 GcbTVmolaAZGcMYUTNOjhjaO1D2nypCzvxdEYoUtziOTtA2OOPX0HswxlJA48AgcKWvC/6qrBcSkr
 DiyyCcfUqbV1BQ==;
Date: Thu, 25 Jun 2026 08:17:30 +0300
Message-Id: <8633ybmc5x.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN> (message from
 Dmitry Gutov on Thu, 25 Jun 2026 05:12:25 +0300)
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN> <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 25 Jun 2026 05:12:25 +0300
> Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> >> Or turn the search input into a byte sequence
> >>
> >>     grep -nP $'\xC3\xBC' file.txt
> > 
> > AFAIK, this only works on Posix systems when using a Unix shell,
> > because it's the shell that interprets these escapes.
> 
> Could this work instead?
> 
> grep -nP '\x{FC}' test.txt
> 
> Tested it here on GNU/Linux, and Grep does interpret the escape in my 
> environment.

It doesn't work here (doesn't find anything).  How did you verify it's
Grep that interprets the escape sequence?  And where in Grep
documentation or sources do you see the description of this
functionality?

> >> Or anything else in that direction, rather than telling the user to use
> >> a different command (which are often slower, the bigger your project is)
> > 
> > The only way that could work is to use --file=FILE option, after
> > writing the search string (encoded in UTF-8) to FILE.  But that needs
> > changes to dired-do-find-regexp (and maybe also xref).
> > 
> > It is still tricky.  The big advantage of using Emacs buffer-searching
> > facilities is that they work reliably and seamlessly.  (The
> > disadvantage is speed, of course, but since the hits need to be
> > examined by a human anyway, does it really matter?)
> 
> Imagine that the project has 20000 files and the match is only in the 
> last file. With grep you get pre-filtering for 19999 files, so the 
> process can finish quickly.

I'm aware of the speed advantages, but in my book correctness and
reliability trump speed.  E.g., my port of Grep is linked against the
old MSVCRT runtime, and it cannot even cope with UTF-8 encoded files:

  d:\usr\eli\data>grep -nP "berle" umlaut.txt
  umlaut.txt:1:Ãberlegung
  grep: writing output
  grep: write error

(I can explain why that happens, if someone is interested in the gory
details.)  So only Grep linked against the newer UCRT runtime has a
chance to even work without aborting early.

Is this what we want to recommend to our users on MS-Windows?

> > Btw, using Grep for such tasks is problematic even in principle,
> > because Grep works on byte level, so the user must make sure the way
> > the search string is encoded when passed to Grep is identical to the
> > encoding of the files to be searched.  For example, looking for
> > "Überlegung" that is encoded in UTF-8 when we call Grep will only work
> > with files encoded in UTF-8, not, say, in Latin-1.  (That's another
> > advantage of using Emacs buffer search: this problem doesn't exist in
> > that case, because each file is decoded into the internal
> > representation before searching it.)
> 
> Perhaps we are lucky that this issue does not come up very often.

See above.

> But having project-find-regexp use Grep or Ripgrep seems to work well 
> more of the time, and the feedback I have received is positive, so the 
> above limitation might be just something we have to live with.

Only as long as all the files have the same encoding, which also
happens to be the current locale's codeset.

> Unless we can detect the set of encoding that the project uses from 
> somewhere and apply that in our search. E.g. if we can already open 
> buffers. Or read .gitattributes and see if 'working-tree-encoding' is 
> set for certain paths.

Git doesn't really care about encoding of text, only about encoding of
commit log messages.  And the problem is much more general than just
files under Git.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 25 Jun 2026 02:12:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 22:12:48 2026
Received: from localhost ([127.0.0.1]:58351 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcZa6-0008UL-Sn
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2026 22:12:48 -0400
Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]:56429)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1wcZZx-0008Tq-Sc
 for 81294 <at> debbugs.gnu.org; Wed, 24 Jun 2026 22:12:39 -0400
Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42])
 by mailfout.stl.internal (Postfix) with ESMTP id 07D771D00071;
 Wed, 24 Jun 2026 22:12:28 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-02.internal (MEProxy); Wed, 24 Jun 2026 22:12:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm3; t=1782353547;
 x=1782439947; bh=4iwp4CV9sh4L3zbDFY4BqnwMjl5XXSytavMZ1dNWczU=; b=
 P47QF/5Zoo8I6D6rm9gBod3EZ1X9OocxyO4/2yi3U8yCBlZmToHtv8xtQXiaOfqS
 HpkHgOIKf7YH0Bfr6nHSlkduEdlGczSSKDzS82Pgs6rn1JrFoIkiu33Za3aHDyCQ
 aS4FtNDoZMu6V2esTs1BhGla62N6ouV7DTFV5KnjWfpUjr9K0AaiQJEBMCDCW+dY
 OlEYSUvQc5tEJGcUOp5vKvgCPar3uUBujhb4aE0Jukl7NX7yPfklzgSRzFUzAve/
 YwyXBiZ2iEdaHH5+jUN7RbMI4uM7xRC1zS4JkzFY94o5g48s3ETBuKDmCA0ZDdaB
 pcdCK9F8StuIg29oPEhgcw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1782353547; x=
 1782439947; bh=4iwp4CV9sh4L3zbDFY4BqnwMjl5XXSytavMZ1dNWczU=; b=J
 zSKaxXJrfDSIIUFzD5p635ugZUKh4NYIu3mV5XI/ItQ8QteQoF6DmYOSItS1M9Kp
 ywIsLoBz/WGQeIxMOeqSbXuHBBlzq0xWIxR7hKS/rgZ+QnkDOwel4t7UOME5IFGa
 WVEpf6MGiCya/a443fmdiXnDKdyzRW7bP4qkRcVG0uHVONK1BdYG4UZFQFGXe2XX
 JLW2R9FoYTS8bmi11ET9JV/Mh7/ylaiNOfq1Wzwebr1fUbRRoPRFypsdTwbaUCAy
 8iE5P4b6aXYK1fVQYLF0nbiVf5RCAQQesP9nwmSQqzpGpDn55iFztuMveuPvo0bb
 WtwaepzHCcH33FoGkjBbw==
X-ME-Sender: <xms:i448aq-KEaipad_9XgQrZSx07xDEeU7_1x5ZLpZkNlvTZtpZWf1qQQ>
 <xme:i448aiI-N59J0EaUlLhfUfwf0ElbCwmdV9i9cCvJXuIelGZBtXJaRStwYMiun97gF
 uiBjKfzi-NJSya8yObjbbXBiIKQtnzXIXoA-xhfWSG4E98bubb-yssa>
X-ME-Received: <xmr:i448atYILmTslRaA9biB5_7JPRPsf_c_tYVC0i9dp4KCor2HG947FX07gEiYsyW3hKCS>
X-ME-Proxy-Cause: dmFkZTESKANX6V/uVgticdI4G3MDTzKyh7pm9zNd//CvAf6fPYnI7OVHqSo/jp1TcTs3hB
 YQEcUIfjaNqFGQSyHPlHFO24vK7Fvpom5uHC8Bx3x6p6oK4PbEhb2N8pybWbsjC42luPQt
 5FPnwUFTOd6iOO/ByG4BaakEoS6vyuN88r2EgR2oOg68g7DYxtrOk4mqzNJw2f7QBQREIg
 6lDrv2ZJWwWsYuydJhaHLw9IpFQ6h0lFmQsEYlNp0Kc6qa+7+ZZ+96ePHeqfrseRhsiOiw
 1a1/j+SMrFr4AO737MWNy8vk6J5GN+Q0vcFoyf081w01X3nQJ+fXG1HHUL4pwNq6ctvOgA
 7VpvZNL/VE2usPtVwCCCUtuWYb2j3hVzSPUhogS+GofXg0ax0C9tXkd/iilHGNsDvXLEhF
 Ku4V82NxAYrHLmg6Rn2+YuzMqdfbK0YMhYC4/ak7wygi0iR07Clft2BDSxw9ZGZuRPMsh5
 jNsyY0r1QMWABSag7Yfy+IqKoZPcgM+KvPSp35ku/6fI/6IM5WIHsD+2BDfwd1i4DoqE6g
 ixYR9EIyGMPRHCGFqO9DsUmauD+fjNZZpwcexl4B2JPNUW6WbOTGG+9gYVNfGSRCB6SKqV
 wsN8q9h9sA6tlRirym9Sa5msTO4NoLPhYmVSi2L09H+Dl+JvTjpAWcdTsivg
X-ME-Proxy: <xmx:i448asKKnKWezrlKjkeOqnn9WlMYNU6AHBrLPAku4txE8raqsJYBsw>
 <xmx:i448ajDcirmYWG29Vi2cIhsS1RYFhc3cRiezfhAcUrh8D47THRw6PQ>
 <xmx:i448apphxGgEgUcGeLRtlXF9S335QZpXfMd1O3g56WeraoVjsouR_Q>
 <xmx:i448amj0GP8IJ2sd0cdMcI7PfTFvA3k0PBUk-jASh6cX1wqkfdik2g>
 <xmx:i448av12J3swha2KWvYWRMLq_lGSqgKXMpRyB6r8of4hh98958uJdM0k>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 24 Jun 2026 22:12:26 -0400 (EDT)
Message-ID: <8c188c51-b060-4b60-91f8-563c1655b922@HIDDEN>
Date: Thu, 25 Jun 2026 05:12:25 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
To: Eli Zaretskii <eliz@HIDDEN>
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <86pl1f9aj0.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <86pl1f9aj0.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 24/06/2026 19:18, Eli Zaretskii wrote:
>> Date: Wed, 24 Jun 2026 16:54:49 +0300
>> Cc: 81294 <at> debbugs.gnu.org
>> From: Dmitry Gutov <dmitry@HIDDEN>
>>
>> On 24/06/2026 16:03, Eli Zaretskii wrote:
>>> This is a known issue on MS-Windows: you cannot reliably pass UTF-8
>>> encoded command-line arguments to external programs.  In fact, you
>>> cannot reliably pass any non-ASCII strings that cannot be encoded by
>>> the current system codepage.  But UTF-8 is special in that, even if
>>> your system codepage is 65001, it won't work with external programs
>>> (because the way we do it in Emacs supports only single-byte
>>> codepages).  dired-do-find-regexp uses Grep, so you bump into that
>>> problem.
>>
>> Do you think we could ask grep to "fold" the search space somehow and
>> have it match u-umlaut when the input is plain "u"?
> 
> That would risk false positives.  And I don't think I know how to ask
> Grep to do that, if it even supports such folding.

We recheck the search results in a buffer, so it would be

>> Or turn the search input into a byte sequence
>>
>>     grep -nP $'\xC3\xBC' file.txt
> 
> AFAIK, this only works on Posix systems when using a Unix shell,
> because it's the shell that interprets these escapes.

Could this work instead?

grep -nP '\x{FC}' test.txt

Tested it here on GNU/Linux, and Grep does interpret the escape in my 
environment.

>> Or anything else in that direction, rather than telling the user to use
>> a different command (which are often slower, the bigger your project is)
> 
> The only way that could work is to use --file=FILE option, after
> writing the search string (encoded in UTF-8) to FILE.  But that needs
> changes to dired-do-find-regexp (and maybe also xref).
> 
> It is still tricky.  The big advantage of using Emacs buffer-searching
> facilities is that they work reliably and seamlessly.  (The
> disadvantage is speed, of course, but since the hits need to be
> examined by a human anyway, does it really matter?)

Imagine that the project has 20000 files and the match is only in the 
last file. With grep you get pre-filtering for 19999 files, so the 
process can finish quickly.

> Btw, using Grep for such tasks is problematic even in principle,
> because Grep works on byte level, so the user must make sure the way
> the search string is encoded when passed to Grep is identical to the
> encoding of the files to be searched.  For example, looking for
> "Überlegung" that is encoded in UTF-8 when we call Grep will only work
> with files encoded in UTF-8, not, say, in Latin-1.  (That's another
> advantage of using Emacs buffer search: this problem doesn't exist in
> that case, because each file is decoded into the internal
> representation before searching it.)

Perhaps we are lucky that this issue does not come up very often.

But having project-find-regexp use Grep or Ripgrep seems to work well 
more of the time, and the feedback I have received is positive, so the 
above limitation might be just something we have to live with.

Unless we can detect the set of encoding that the project uses from 
somewhere and apply that in our search. E.g. if we can already open 
buffers. Or read .gitattributes and see if 'working-tree-encoding' is 
set for certain paths.

It would be a significant new feature though.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 24 Jun 2026 16:21:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 12:21:12 2026
Received: from localhost ([127.0.0.1]:51935 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcQLf-00067S-Vz
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2026 12:21:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49186)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wcQLd-00066n-Aq
 for 81294 <at> debbugs.gnu.org; Wed, 24 Jun 2026 12:21:10 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wcQLY-0006Gt-2D; Wed, 24 Jun 2026 12:21:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=5pkMTHu7bD2wiDod/R/meS9IghfWmOQCSgnwoPK8zGw=; b=DIkuuBkW0UCw+Im9vAMI
 fIPd+AbpGvoL7jgHz6/0vq/ndqcY8tUFWeZEsW+gNERHs95pg1wtZbs08hOs9QpQ3Qd04qNPfs5/q
 9ZsAyMY/jUJsqW4kSfzAxB5nKUsoT5aSWfX+ITf6MD8eWnm0LN7CAwKMjulcXlC4Svltjb2F5gx3r
 +bkFOMldKw9qcheOPg3CenbZEQaEMqBTtrZq+9qiKNAcfM93oxxP11VGKEYMrLaJ0GHJ8d4LMtLfc
 bBd9eB3p7U+DmbATv5Op+Paby4zyNRJ4Ro69SFM9hX1acEE/kaVQJHn+kntXhSSMr6nEznX/bvhhe
 YihsuotIJfQ6yQ==;
Date: Wed, 24 Jun 2026 19:21:01 +0300
Message-Id: <86o6gz9afm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Johann =?utf-8?Q?H=C3=B6chtl?= <johann.hoechtl@HIDDEN>
In-Reply-To: <CAH4isRxiGBWhigpE7H9QSfVoP=PGYybf90b77pKZzu8oag9fAw@HIDDEN>
 (message from Johann =?utf-8?Q?H=C3=B6chtl?= on Wed, 24 Jun 2026 16:18:10
 +0200)
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
 <CAH4isRxiGBWhigpE7H9QSfVoP=PGYybf90b77pKZzu8oag9fAw@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81294
Cc: dmitry@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Johann Höchtl <johann.hoechtl@HIDDEN>
> Date: Wed, 24 Jun 2026 16:18:10 +0200
> Cc: Eli Zaretskii <eliz@HIDDEN>, 81294 <at> debbugs.gnu.org
> 
> Please bear with me, I certainly did grasp the answer of @Eli Zaretskii at
> https://www.reddit.com/r/emacs/comments/1u2tlbq/comment/or6izvc/ but there it was not explicit that
> dired-do-find-regexp does in fact also use grep. I thought this one would use emacs internals as does
> dired-do-isearch
> 
> So I understand that using  dired-do-find-regexp is encumbered with the same shortcomings on Windows as is
> rgrep and the alikes which rely on external tools.

Yes.  Apologies for saying something different on Reddit, I didn't
remember that dired-do-find-regexp uses Grep, and was surprised to
find that out when I looked at the code today while trying to analyze
your bug report.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 24 Jun 2026 16:19:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 12:19:16 2026
Received: from localhost ([127.0.0.1]:51903 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcQJn-0005sw-GN
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2026 12:19:16 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43302)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wcQJk-0005sB-TP
 for 81294 <at> debbugs.gnu.org; Wed, 24 Jun 2026 12:19:13 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wcQJa-0005rz-EU; Wed, 24 Jun 2026 12:19:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=N9dFMyK/VlIsebY7kP2V1w0rw16sCC8ZweDiA8sTE/A=; b=q1rqyHMS4mgL3gBk7Nqc
 1J8f3vVx0szOuNrHuKakGcKH8km7vPH3zN2sDw/GM2VL6/VawJ6rJBMts+J4Q5gn8/Wl3cBxmcMG6
 tUExB9M2/UwH+tV1C5FGhMy8U3TJ+SxrFI4ruqN3hUnbydtqsS4vtGGW901hBDAW6nAHmiIrFqLCg
 JwaPq9esG0FP0APVc48vu5mm4xnl6Q5gokrepeKlvzv2zri6++nymddljIr/dKtAYVmd5OSOBvND0
 ALEpUtpRPFqVDaP1X3laqxruMuH+6raGzrQ2v8WQItXBjN8UIz7Xi8sHJ6T3WLap60KqXXEAR0GSZ
 Q2Ir9v1PAqZVsw==;
Date: Wed, 24 Jun 2026 19:18:59 +0300
Message-Id: <86pl1f9aj0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN> (message from
 Dmitry Gutov on Wed, 24 Jun 2026 16:54:49 +0300)
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81294
Cc: johann.hoechtl@HIDDEN, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Wed, 24 Jun 2026 16:54:49 +0300
> Cc: 81294 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 24/06/2026 16:03, Eli Zaretskii wrote:
> > This is a known issue on MS-Windows: you cannot reliably pass UTF-8
> > encoded command-line arguments to external programs.  In fact, you
> > cannot reliably pass any non-ASCII strings that cannot be encoded by
> > the current system codepage.  But UTF-8 is special in that, even if
> > your system codepage is 65001, it won't work with external programs
> > (because the way we do it in Emacs supports only single-byte
> > codepages).  dired-do-find-regexp uses Grep, so you bump into that
> > problem.
> 
> Do you think we could ask grep to "fold" the search space somehow and 
> have it match u-umlaut when the input is plain "u"?

That would risk false positives.  And I don't think I know how to ask
Grep to do that, if it even supports such folding.

> Or turn the search input into a byte sequence
> 
>    grep -nP $'\xC3\xBC' file.txt

AFAIK, this only works on Posix systems when using a Unix shell,
because it's the shell that interprets these escapes.

> Or anything else in that direction, rather than telling the user to use 
> a different command (which are often slower, the bigger your project is)

The only way that could work is to use --file=FILE option, after
writing the search string (encoded in UTF-8) to FILE.  But that needs
changes to dired-do-find-regexp (and maybe also xref).

It is still tricky.  The big advantage of using Emacs buffer-searching
facilities is that they work reliably and seamlessly.  (The
disadvantage is speed, of course, but since the hits need to be
examined by a human anyway, does it really matter?)

Btw, using Grep for such tasks is problematic even in principle,
because Grep works on byte level, so the user must make sure the way
the search string is encoded when passed to Grep is identical to the
encoding of the files to be searched.  For example, looking for
"Überlegung" that is encoded in UTF-8 when we call Grep will only work
with files encoded in UTF-8, not, say, in Latin-1.  (That's another
advantage of using Emacs buffer search: this problem doesn't exist in
that case, because each file is decoded into the internal
representation before searching it.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 24 Jun 2026 14:18:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 10:18:44 2026
Received: from localhost ([127.0.0.1]:50609 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcOR6-0000iA-2E
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2026 10:18:44 -0400
Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]:45139)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <johann.hoechtl@HIDDEN>)
 id 1wcOQy-0000gT-4i
 for 81294 <at> debbugs.gnu.org; Wed, 24 Jun 2026 10:18:36 -0400
Received: by mail-yw1-x1129.google.com with SMTP id
 00721157ae682-7fdb04d774aso14245407b3.2
 for <81294 <at> debbugs.gnu.org>; Wed, 24 Jun 2026 07:18:32 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1782310706; cv=none;
 d=google.com; s=arc-20240605;
 b=lQvdEVacTu5/pSURp8kOGNztZgiPjrQF8rJy8v9wNRtkyvJTgXC7563herQYckXuVi
 xR1RDmIZE3exlr4G3smY1MGZEQMIJKXlWeb6Ec3uh4aDPh80sFrdm5gSTJlS4udihdQJ
 ucopSbi3bNWuxIfb8BRdnc3TDJ5zV8ZKgmWqWCmkzlw8WQNJkG6qL9/8oUjlaq8lMD9e
 m4QChxa/r703c005B5pw3w8xTI5kFT04r2124yUmWdmGtsnUKQEgWicVnN/RNVbOYUbN
 XGVIN6RqS18qB6/VELg1H/n3xMrwIKwqAnbpNVCUusWZJNKkcWc1eB/AJXOEmOPyZSrF
 O52w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20240605; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=mFXSbhNyP42CpNuN2PUGp2pK7RjU+GCHuu73dxHwlC8=;
 fh=lBMWXDdglxcWyS0xIdxt8wXzRwLcEkHW3mkbZAqp3hA=;
 b=fWyii0BNa99BThoNo6+GqTQObl+FrkGR4rxXbfjMc1KgdT9JNYyA/+ryPs4wPt5+Bc
 Wisqs5oui1TRYyaJ74yc1ZpcAZH8sBNKB0YMF3eqclEip4BuC5RQv0IVZh36Ar7xe9/u
 cOT7Gov08o3LlToBw1vnDQhG3N+sY18zVPamGGF54FFhuLQ2S6whMfua1mYkO9Cl1shw
 cT27vFFoy5QA37xSPVSk+Oos6gBadYUdXbmVe99zfCJ9Nv4V47bu+TgeF5NFgPr1z0F4
 QzoeWETPnRRpi8aKq2inklVWKUSVsmfshGMOvTOSwMepaRm7udAasoGBE7rkBJfJlzFv
 jkCQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1782310706; x=1782915506; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=mFXSbhNyP42CpNuN2PUGp2pK7RjU+GCHuu73dxHwlC8=;
 b=DINNUX4msAhSpDK7rnbLXwbxw/Dfds07w1DNX5l6Mb9Uf1ju7Khjh4/ez3LEYpo58q
 3g9W18ExQoLgp85IQ/+arrtOp5HWvlQAxcKdLdA4znCmLVd0PGuzL7OqZ8ixD130i57a
 IyUeFpRACTQvWN6ddDU2DapDtAqYE8O0pRRMp7zZXRPDKQBxMeLYqihhNQ0s1qt0r5I2
 I+5UuD9jKOtvovEE3qhbAk5dahH1x2jCIGi6YLBO6+xbJ5HD/aFHmQbZxnVP8nrfKXek
 OSiaii7FaOF1JCUTDmASP4eJacnAsp5+76YUiGj4P28kivVGtOcISt6FLi3E+enAKjuj
 wjRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1782310706; x=1782915506;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=mFXSbhNyP42CpNuN2PUGp2pK7RjU+GCHuu73dxHwlC8=;
 b=jsj7gtAdpHUEHOulUiP6cOlEdLYI/q42pogQajqyi9KjT24inlEP+4hKfcFphL/hZQ
 7f9t/Zym3w7CPnBtNd29Cu4W5mEQkLkYXTTeXE5amY5/gh1h/tywoHuNHQgTDb1Q387A
 4uXAjuf2l9wvY/pfnye9RpIoDmmlWYNzw+QkVDpVRzgTzd0Jaa2wPr046nQC5J0XK4t/
 x0hfu+9eGYdz7A1ZlYZ5vuRAHbVXH5cN+81GUF9yRJ8KHyQIftulvKgsvPBe92aTTIDj
 6y+qhD9QX8qN5cnE/Hk5x2aWDtdDpF1LdcTVcvLIcL+62q3RWGIwi9XCNtDeDW0zzyrI
 CwNg==
X-Forwarded-Encrypted: i=1;
 AHgh+RqBf+FaoSgmwcMrw0LSepz1bSyCTNKUhKWsqJMxjfM1SV7IOz5t7ieT5xII3Gm75ADxdkfNCQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yxr3l9Jnm2DWLl9+XPShE7ArECfxifM6cZ3BuhbEUxJqr5ZK4Uc
 vkmbJc95iXW5lgyT5bguIDbUxj1rfOquieFafkZ+3+hI5SyY0C4y9eM5ic50n1/y9jvJspQpIsx
 YaeFRakEqqGWJk8NRppzUeC2DiWxEGQ==
X-Gm-Gg: AfdE7cnIKyG/8soxLmDQrfKVE7Zv0iMr2bYYARjlpsgPbl2GWy9w/Lb3LSsNP0+07ik
 qOfs4VCU/uIPOMl7ouO26VvMbApRnE+tnh86r5F1ob91yB4nNuazpDJZvwczYNJyk/RjWNFqH8F
 u1WjaCIciYvLHnJmzrdjL4eav/9vUcMMCeIMMa0AOgiYuqE18VBNsR6ARg4o72N8z5WJyBBlh6p
 hYo+6J+tGNcgzbi2qIrDU//t30qQmfEI4Sq5Gl0oLMb2eisb3aHiOTDwg8V+RRLDYddKnskCpna
 pEWwhcvCoAyDfYI8HG3itpsCRuAzPoEQgJvGtefcI4Ko2Rv5LPjcE+tsew==
X-Received: by 2002:a05:690c:6e12:b0:7b2:1bf1:8016 with SMTP id
 00721157ae682-80263fc80a0mr220955077b3.2.1782310701266; Wed, 24 Jun 2026
 07:18:21 -0700 (PDT)
MIME-Version: 1.0
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN> <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
In-Reply-To: <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
From: =?UTF-8?Q?Johann_H=C3=B6chtl?= <johann.hoechtl@HIDDEN>
Date: Wed, 24 Jun 2026 16:18:10 +0200
X-Gm-Features: AVVi8CeriQfN1lLXcFUA-wqRkfcCVLLT6h3zKz8W52gXBwxNrF-0sS0tHr12kzM
Message-ID: <CAH4isRxiGBWhigpE7H9QSfVoP=PGYybf90b77pKZzu8oag9fAw@HIDDEN>
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
To: Dmitry Gutov <dmitry@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000003a79300655008c58"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 81294
Cc: Eli Zaretskii <eliz@HIDDEN>, 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

--0000000000003a79300655008c58
Content-Type: text/plain; charset="UTF-8"

Please bear with me, I certainly did grasp the answer of @Eli Zaretskii
<eliz@HIDDEN> at
https://www.reddit.com/r/emacs/comments/1u2tlbq/comment/or6izvc/ but there
it was not explicit that dired-do-find-regexp does in fact also use grep. I
thought this one would use emacs internals as does dired-do-isearch

So I understand that using  dired-do-find-regexp is encumbered with the
same shortcomings on Windows as is rgrep and the alikes which rely on
external tools.

Am Mi., 24. Juni 2026 um 15:54 Uhr schrieb Dmitry Gutov <dmitry@HIDDEN>:

> On 24/06/2026 16:03, Eli Zaretskii wrote:
> > This is a known issue on MS-Windows: you cannot reliably pass UTF-8
> > encoded command-line arguments to external programs.  In fact, you
> > cannot reliably pass any non-ASCII strings that cannot be encoded by
> > the current system codepage.  But UTF-8 is special in that, even if
> > your system codepage is 65001, it won't work with external programs
> > (because the way we do it in Emacs supports only single-byte
> > codepages).  dired-do-find-regexp uses Grep, so you bump into that
> > problem.
>
> Do you think we could ask grep to "fold" the search space somehow and
> have it match u-umlaut when the input is plain "u"?
>
> Or turn the search input into a byte sequence
>
>    grep -nP $'\xC3\xBC' file.txt
>
> Or anything else in that direction, rather than telling the user to use
> a different command (which are often slower, the bigger your project is)
>

--0000000000003a79300655008c58
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Please bear with me, I certainly did grasp the answer=
 of=C2=A0<a class=3D"gmail_plusreply" id=3D"plusReplyChip-0" href=3D"mailto=
:eliz@HIDDEN" tabindex=3D"-1">@Eli Zaretskii</a>=C2=A0at=C2=A0<a href=3D"h=
ttps://www.reddit.com/r/emacs/comments/1u2tlbq/comment/or6izvc/">https://ww=
w.reddit.com/r/emacs/comments/1u2tlbq/comment/or6izvc/</a> but there it was=
 not explicit that dired-do-find-regexp does in fact also use grep. I thoug=
ht this one would use emacs internals as does=C2=A0dired-do-isearch</div><d=
iv><br></div><div>So I understand that using=C2=A0
dired-do-find-regexp is encumbered with the same shortcomings=C2=A0on Windo=
ws as is rgrep and the alikes which rely on external tools.</div></div><br>=
<div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"=
gmail_attr">Am Mi., 24. Juni 2026 um 15:54=C2=A0Uhr schrieb Dmitry Gutov &l=
t;<a href=3D"mailto:dmitry@HIDDEN">dmitry@HIDDEN</a>&gt;:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex">On 24/06/2026 16:03, Eli Za=
retskii wrote:<br>
&gt; This is a known issue on MS-Windows: you cannot reliably pass UTF-8<br=
>
&gt; encoded command-line arguments to external programs.=C2=A0 In fact, yo=
u<br>
&gt; cannot reliably pass any non-ASCII strings that cannot be encoded by<b=
r>
&gt; the current system codepage.=C2=A0 But UTF-8 is special in that, even =
if<br>
&gt; your system codepage is 65001, it won&#39;t work with external program=
s<br>
&gt; (because the way we do it in Emacs supports only single-byte<br>
&gt; codepages).=C2=A0 dired-do-find-regexp uses Grep, so you bump into tha=
t<br>
&gt; problem.<br>
<br>
Do you think we could ask grep to &quot;fold&quot; the search space somehow=
 and <br>
have it match u-umlaut when the input is plain &quot;u&quot;?<br>
<br>
Or turn the search input into a byte sequence<br>
<br>
=C2=A0 =C2=A0grep -nP $&#39;\xC3\xBC&#39; file.txt<br>
<br>
Or anything else in that direction, rather than telling the user to use <br=
>
a different command (which are often slower, the bigger your project is)<br=
>
</blockquote></div>

--0000000000003a79300655008c58--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 24 Jun 2026 13:55:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 09:55:09 2026
Received: from localhost ([127.0.0.1]:50124 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcO4H-0005BW-VO
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2026 09:55:09 -0400
Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]:33059)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1wcO4B-00059Y-87
 for 81294 <at> debbugs.gnu.org; Wed, 24 Jun 2026 09:55:02 -0400
Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 850707A0167;
 Wed, 24 Jun 2026 09:54:53 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-10.internal (MEProxy); Wed, 24 Jun 2026 09:54:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm3; t=1782309293;
 x=1782395693; bh=z4kPc1TAmDxLnruCAVHd8Xo3ndEGc73XKSjTzn9K+rE=; b=
 Yf2kh8aXGdQ2GpWws0I1CPJiBFJb/OHUtd8IT2qUkEB7Fk2gGg5hAz5ezBmEVFot
 KLvgpf/enpuV0H0tjp2qPK44msR1esHfh7JDByuymxQ1BXyJ1yhLG9x59KrIRRNY
 wsFeToPaDF51E0Tsj3gi8DnXPDWRLl6lVtNyLyMgSD5DaxwvXZlksAJKuqF6hvyy
 qSFKepFvZwTPLNU71KKJpf9T9T84RfoRKkTwKnzeGrJfyRBgRXviWo1f+KlJv0B+
 fdkBkdkiIdlOSI/YfFOJKK0cHUtBrB85bKRBa8wEiSrQ3ZHPKScoftYgy8UfgFb9
 Uzr5xhWBMDs3EIjWiIHCJQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1782309293; x=
 1782395693; bh=z4kPc1TAmDxLnruCAVHd8Xo3ndEGc73XKSjTzn9K+rE=; b=W
 erpK5YEGYDHGeVpCrmKoH9V5YzyfxGZP+MTQbwVZWCgfYGlY26vflRkFmj/Od9RI
 YPaDBQw3YzqGtww9pjZPzRKk5WbX0vhuPCeGYn8bc2T+jscqbhMGkjzY1fjClrV6
 j1dob7iX8bOjkkXacLJsEwHErejUMj1m79R8IGMsgoTZOaV5m37wKtDxAeCqqj7U
 omcZqWWWVSxr/S/GEGBYLD+7Xal6T9MeDcl+H7PstbxYfd5Q2wZjYralvuUkoMYk
 tYgMbfuZGaOCOdj1YVcRD1M44cxiRDdJYDjVNQsxsWHRfdtFwkTz2E3qqukclPTF
 CTMFtHDb1/GAKwSmWr1DQ==
X-ME-Sender: <xms:reE7ambXEWsl8vZJv3kshJuNIkH9UUsbTy_RGTVRzWizP7cz7suRzg>
 <xme:reE7ag1S-FXexXLdLpUHinR-4T-GSqiM3zjUDPOeoQkIuNG9VhbGP58QYM4fdq1hu
 OVvqbYYVgIq62ePXT8PJDGC4rmYoFWkrFlwtpFwFpjNnOaM7iu1QQ>
X-ME-Received: <xmr:reE7auWl7NKLiDHlIv_156U9irNN1llwc4qE2IidlAPMY0qcDh6mzJ1-xYRnaBMMcZWq>
X-ME-Proxy-Cause: dmFkZTGZCXbVJY+JKocgNG1d/Lf+72sV2soSom7s4R0qAwqSaIfHAdwDwODhej34Ins+Jc
 nR545AZp3vvxhHwlm9CsRVHLpZcOcB2C3XpKKcEZRgVWIvsmMUs2ifW0yksbNJHd2/gZEU
 DTbVx0LUHvfbbw0uxU2l2CRX2k9jAtJHWKUxtBrgnRgvaqT7OWFl2EmmIl+EVW3r6a4WIm
 yzAR0IAGqCKbuKh1QlDVjXuV0TwC6jboVaf8yOTImjC0rvag3AqToVowlIyrqv7sP3eec5
 n59LFyFTS3aHcvCRTO4fBOsDHvsj2+RyiVn4HvvZqJK/zZD5oNhaCW5Lyz1IJzSr3ej2WE
 QZR0Hho3mwcvQ8KS30A4Jo9zi5wgh0j8KiCryhcnE7PcGsi8p3wwgb5p2e4ioR/SVFfT95
 cxkXsxl+9WOzIiyFJu/LyMi7DHhT2kG2eOBWVUV2nuhUQEFJcOZ3KYlMx/JfMZgP2v0V9C
 /mDP7b0pqzCeEfNiomj7nFgAxGNZ44zew3fC4V6XmirOXwnHE8Uqm4SyGNu8Z1uraM3WEZ
 W8tjsAOI+dcjOs0j9bfgap0rzpfT+p1XTmO0fQmdkgaMn0RZPpZAFh/4wwfqEjVe85I32s
 I5ZJeqeFmDgtKts1NzRQ0Vc9j20s31CyDMyJ3ccYc/Wa7PZEmi3E78QbUFcA
X-ME-Proxy: <xmx:reE7aiXktNm80D_aRlUbafb_XJG52R1whRHDj-qKd0CaHqSrIQJBdA>
 <xmx:reE7alfdewk_v3Ux2ugG3xhCDJ4uuIiM9_elm24VSG0TL-zL3pVeIA>
 <xmx:reE7ajXpXtudpvK_7cEHJmNHTssQl4vOThS2HO5_WsE4I6xY43VPuw>
 <xmx:reE7amfznQ3xmwjt9wlsQenLeSbRXL5LIoEL4JGFTAJVB4JR9hZRKw>
 <xmx:reE7akjAX4DvY9vOOAsJxWKDpwc3zz1pfWq2ryJR62_FeRsBLtsxlhK6>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 24 Jun 2026 09:54:51 -0400 (EDT)
Message-ID: <75a37a35-e4e0-4175-8eb2-6eb216bbebc7@HIDDEN>
Date: Wed, 24 Jun 2026 16:54:49 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
To: Eli Zaretskii <eliz@HIDDEN>, =?UTF-8?Q?Johann_H=C3=B6chtl?=
 <johann.hoechtl@HIDDEN>
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 <864iis9jk6.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <864iis9jk6.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81294
Cc: 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 24/06/2026 16:03, Eli Zaretskii wrote:
> This is a known issue on MS-Windows: you cannot reliably pass UTF-8
> encoded command-line arguments to external programs.  In fact, you
> cannot reliably pass any non-ASCII strings that cannot be encoded by
> the current system codepage.  But UTF-8 is special in that, even if
> your system codepage is 65001, it won't work with external programs
> (because the way we do it in Emacs supports only single-byte
> codepages).  dired-do-find-regexp uses Grep, so you bump into that
> problem.

Do you think we could ask grep to "fold" the search space somehow and 
have it match u-umlaut when the input is plain "u"?

Or turn the search input into a byte sequence

   grep -nP $'\xC3\xBC' file.txt

Or anything else in that direction, rather than telling the user to use 
a different command (which are often slower, the bigger your project is)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at 81294 <at> debbugs.gnu.org:


Received: (at 81294) by debbugs.gnu.org; 24 Jun 2026 13:04:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 09:04:14 2026
Received: from localhost ([127.0.0.1]:49998 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcNH0-0007X3-JU
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2026 09:04:14 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36888)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wcNGu-0007WG-CP
 for 81294 <at> debbugs.gnu.org; Wed, 24 Jun 2026 09:04:08 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wcNGm-0000va-M7; Wed, 24 Jun 2026 09:03:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=b+ZbaQgHznsM8Q/pll+GqGpiSZrQx98zYbZh1Kz6TaU=; b=aj1677LU07UiXt/Czs4o
 0HONYUCaZQzSVo6vQ8ybutYILtjHRMS+/mSumC3XEO2DPizxrN5m6dVzT64aukX1m2c4v86JJc8Gl
 isql9czjwphNdRaL0277j1fHTXdOuAa0Znbx+uksmHJnzvTFmBrjglUQDnGBzWckNFobmvwKTRkLt
 J/qAZBv5HTTTJB9MAXP2vr+uNxqFDzmWiIGtmcVUmq3zt4YW53D7zCm6bAED2kJ2uWMFpjjG1WFSn
 XEY7K48KrvIubtYTfPrhKlO+5utwD3bA/WNPnf4/Ur7niTk49g3GM13HM+fBt/ZZ85mSD++0raeAN
 gC1oR2sGnRxj9g==;
Date: Wed, 24 Jun 2026 16:03:53 +0300
Message-Id: <864iis9jk6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Johann =?utf-8?Q?H=C3=B6chtl?= <johann.hoechtl@HIDDEN>
In-Reply-To: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
 (message from Johann =?utf-8?Q?H=C3=B6chtl?= on Wed, 24 Jun 2026 08:21:51
 +0200)
Subject: Re: bug#81294: dired-do-find-regexp doesn't find Umlauts
References: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81294
Cc: 81294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Johann Höchtl <johann.hoechtl@HIDDEN>
> Date: Wed, 24 Jun 2026 08:21:51 +0200
> 
> Problem report concerning Windows 11
> 
> I tried the following using emacs -Q:
> 
> Visit a file
> 
> first.txt
> Set file save encoding to utf-8 C-x RET f utf-8
> Enter the string
> 
> Überlegung
> 
> into this buffer
> 
> Copy this file as
> folder/second.txt
> 
> If I do a C-u C-x d with the paramters -laR and afterwards in dired a % m .txt, these two files get marked.
> 
> Pressing A and searching for Über doesn't give a result
> Pressing A and searching for ber does return the expected tow XREF results HOWEVER in the xref buffer
> incorrectly displayed as 
> 
> c:/Users/HoechtlJ/code/est/first.txt
> 1:\x303\234berlegung
> c:/Users/HoechtlJ/code/est/folder/second.txt
> 1:\x303\234berlegung
> 
> M-s a C-s does open the marked files and does find the searched string. This one works reliably
> 
> It seems that the dired A command bound to dired-do-find-regexp does introspect the matching files but
> guesses a wrong encoding? Visiting the file correctly display the content as utf-8

This is a known issue on MS-Windows: you cannot reliably pass UTF-8
encoded command-line arguments to external programs.  In fact, you
cannot reliably pass any non-ASCII strings that cannot be encoded by
the current system codepage.  But UTF-8 is special in that, even if
your system codepage is 65001, it won't work with external programs
(because the way we do it in Emacs supports only single-byte
codepages).  dired-do-find-regexp uses Grep, so you bump into that
problem.

To work around this limitation, use commands, such as multi-occur,
that visit the files and search them inside Emacs buffers instead.
You may have problems even then, because Emacs might not reliably
recognize the file as encoded in UTF-8, but you can overcome that via
file-local or directory-local variables, or by encoding the file in
utf-8-with-signature.

P.S. In the future, please report at least the Emacs version where you
see the problems, if not the full data collected by report-emacs-bug.
This provides important details that help identify the reasons for the
issues.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2026 06:22:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 02:22:15 2026
Received: from localhost ([127.0.0.1]:49015 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcH01-0001zF-Si
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2026 02:22:15 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:60282)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <johann.hoechtl@HIDDEN>)
 id 1wcGzy-0001yL-Py
 for submit <at> debbugs.gnu.org; Wed, 24 Jun 2026 02:22:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <johann.hoechtl@HIDDEN>)
 id 1wcGzt-0004a4-Ax
 for bug-gnu-emacs@HIDDEN; Wed, 24 Jun 2026 02:22:05 -0400
Received: from mail-yw1-x1136.google.com ([2607:f8b0:4864:20::1136])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <johann.hoechtl@HIDDEN>)
 id 1wcGzr-0002FQ-Iz
 for bug-gnu-emacs@HIDDEN; Wed, 24 Jun 2026 02:22:04 -0400
Received: by mail-yw1-x1136.google.com with SMTP id
 00721157ae682-7e86d46b02dso8767917b3.3
 for <bug-gnu-emacs@HIDDEN>; Tue, 23 Jun 2026 23:22:02 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1782282122; cv=none;
 d=google.com; s=arc-20240605;
 b=CcwEUZCzgtZUrKucEPZTyHhp+FSmV2ksK7gwdN2XoDaA9TykaAJ+c5ABjL7/TC7GHZ
 U5+YtAoZV5zlLkf+c4uUVMM2FNdRcLkGsZyAqnxx7UMMRzOzdD5ADGycO3lD//DI9ReL
 3dpwVsnBEi26VSKoVggsK82POFJ6l2NPjcOm2SeW9c6UkZWot7sED0yUY8DXH389O8zE
 IdjqLt27POIteVj/d6UQn2ahjB91t8ywKwk+XKgmbh538fT1VMG0gTY9WflYwkJuX93Q
 JAisdtxm0OmIKmFFApW1Uu0zoTtSlvE6x+BJWjOAS+s+OnY71jR3vXjBjpE63D6yEgp/
 zV9Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20240605; 
 h=to:subject:message-id:date:from:mime-version:dkim-signature;
 bh=qsvQ8sAhw72TqSbXeAxpmsL/ZTWjY/oZ0l/cFud/E5M=;
 fh=+R8aXOFVnuBbN1nRXJJI02Ia//JUQJmLW/Uk/VaA0ag=;
 b=ITq0MGRjOBxWlKmGjkrzzMFwJROdtiq76lVLF7C1aAg3Ag7gq218pkDQb4ETOla2Ef
 I+JD8i+E+kyxYKQ2Q/o/mzEBqRdRX25JDGwyvSWJM860qBzxjC6QY0VKsxBNklndfbLX
 VRVSNaev1zbnPlrXYS2/fH+s4L+KKc3Z9bfOfqhZdtde5GSJb9cH7NM8rM4sm9YzvSE6
 RlkUPS2F4wbAYNBQEGGb1+847/2SBFmslFI6G/msIPxySP0RfF5SigUhH+dwU1lfnReJ
 GkPU+ZKhGR1v7S0m5hihTF/CiCtiNR9fWhrot50PtI3z2jKvqvw5o06aZtZRAtmZysII
 1EhA==; darn=gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1782282122; x=1782886922; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=qsvQ8sAhw72TqSbXeAxpmsL/ZTWjY/oZ0l/cFud/E5M=;
 b=fW+v8rJiTRYDijcN0ZuoZ4nyw7T4M9IPh/ue7yLBLyxKb0KbbePIfNoIMPvezyxSGW
 w8EmiIxZqqvDTY+Wzv+A7JIKFbDYp+K8Hxu/xzxdz7o6hAi93/4tfjA+2xq71zAVRaTw
 BFH/MRYmaJdXlYFbYIf+d+NJe9TKuaAweQBcR8Omtyb1riBuy3VyBpnAfFGMIrVFKlo1
 OwP/QZ0v3ImcMbaKJnWetSrWC3nZHUPYZyIgsOWFD5f/7NynkU5p/1WTqKfJ/zuJUPl7
 80Fhvnjm808vYk6rdd69Ka2Lh/NOmY3LuXO9kMUoHPbf1XaB9gyA/LKg+wx4tXTwFKGP
 EtNg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1782282122; x=1782886922;
 h=to:subject:message-id:date:from:mime-version:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=qsvQ8sAhw72TqSbXeAxpmsL/ZTWjY/oZ0l/cFud/E5M=;
 b=ELJ4H2IL7Wf7eVzSz18cFh8PPrF9lhKyrNtjxLlTYnWtoNoyI61Zx9T6KXrGjJTjhB
 b//s24edXhVMpGNh6MVqGEvSOG4J2v+xfAQOIP7sT6R6ST+zFxK3loaJuBwgtncigW7B
 +zGeAIbChGB9GW8eq5mYy29Q+8Lmy8skp7bxjXBkuQXQA1GewnZgdp6ykSI2Gh98aGOi
 4mnxotJ1lash3fsXBqmkNrkUq2DYVX1d80SKRj2NhF/EFr6zq/QLhc1lxMgvJNd7D5mI
 UCY4nxbq+IvqN9Y8LcXyv9eTx87nkzjaQleBZ5hTSKmYqMUNc8Y9lwBVHAl2FyRJNUoB
 0TyA==
X-Gm-Message-State: AOJu0YyhTwbvUpfUNWGT8smrWZkhwty3+Yr4vGl4xlI6vVa9pl18o723
 cHli2HKifmvUWmh7JUnnHWPKJjFj5jkWhqHG8+EChwSoC4j2HjEbsjMfUV10kxjcMX3xPSQVwdf
 l1y+dys+sVAYuPMCXWpSeTS3GY7wdrnA9edA=
X-Gm-Gg: AfdE7clhL0E9J33T3WvVaYZkucjBGdrJGZIWreN3xtS2wJCUNMVR0jeCYRPUciS5qNS
 QH8ejZ4vaqWS9kBzEmL7wgmLLTZG7NMNLyYEReNu/CCZnDRyr++YIhC7pIZNTDDOqUyo4db1swf
 aPBJNotxpCdRdbxCM8VNiiYgCMqOQnrjfd5t2l29ii+ticU4D0jKyKp4EcGWlE2gPI0YcfbfV6A
 0kAvWdaaz6Yci5JoB6hOEv2+NFwijdnEMdILODYNkWEfIQF5yPwmG7mBPZPZHqoumNdzGHV6g0Y
 CEHQWRMBVlSMlYmLCN1AhRgghY9zv38d0dcXd4XjwtFft+y5YP1hwalbzg==
X-Received: by 2002:a05:690c:3341:b0:806:5a1c:d892 with SMTP id
 00721157ae682-807f5633ca1mr18581387b3.47.1782282121936; Tue, 23 Jun 2026
 23:22:01 -0700 (PDT)
MIME-Version: 1.0
From: =?UTF-8?Q?Johann_H=C3=B6chtl?= <johann.hoechtl@HIDDEN>
Date: Wed, 24 Jun 2026 08:21:51 +0200
X-Gm-Features: AVVi8CenvuTwdGK8HUwYxYuitgJsS1Tj8Z2LMqd3EcuLsq8uONOz7iA66CaTK14
Message-ID: <CAH4isRzCqmRnHWqsW75XyOCSHYW9i+szPLrX+=oSnxyQk=RWTQ@HIDDEN>
Subject: dired-do-find-regexp doesn't find Umlauts
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000c483a50654f9e413"
Received-SPF: pass client-ip=2607:f8b0:4864:20::1136;
 envelope-from=johann.hoechtl@HIDDEN; helo=mail-yw1-x1136.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Problem report concerning Windows 11 I tried the following
 using emacs -Q: Visit a file 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (johann.hoechtl[at]gmail.com)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'
 headers
 0.0 HTML_MESSAGE           BODY: HTML included in message
 0.0 T_KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted
 Colors in HTML
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

--000000000000c483a50654f9e413
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Problem report concerning Windows 11

I tried the following using emacs -Q:

Visit a file

first.txt
Set file save encoding to utf-8 C-x RET f utf-8
Enter the string

=C3=9Cberlegung

into this buffer

Copy this file as
folder/second.txt


If I do a C-u C-x d with the paramters -laR and afterwards in dired a % m
.txt, these two files get marked.

Pressing A and searching for =C3=9Cber doesn't give a result
Pressing A and searching for ber does return the expected tow XREF results
HOWEVER in the xref buffer incorrectly displayed as

c:/Users/HoechtlJ/code/est/first.txt
1:\x303\234berlegung
c:/Users/HoechtlJ/code/est/folder/second.txt
1:\x303\234berlegung

M-s a C-s does open the marked files and does find the searched string.
This one works reliably

It seems that the dired A command bound to dired-do-find-regexp does
introspect the matching files but guesses a wrong encoding? Visiting the
file correctly display the content as utf-8

--000000000000c483a50654f9e413
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">
<p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:12pt"=
 id=3D"gmail-docs-internal-guid-b46a9c83-7fff-ce54-5834-62acc4cbecdc"><span=
 style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);back=
ground-color:transparent;font-weight:400;font-style:normal;font-variant:nor=
mal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Prob=
lem report concerning Windows 11</span></p><p dir=3D"ltr" style=3D"line-hei=
ght:1.38;margin-top:0pt;margin-bottom:12pt"><span style=3D"font-size:11pt;f=
ont-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;f=
ont-weight:400;font-style:normal;font-variant:normal;text-decoration:none;v=
ertical-align:baseline;white-space:pre-wrap">I tried the following using em=
acs -Q:</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;co=
lor:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:norm=
al;font-variant:normal;text-decoration:none;vertical-align:baseline;white-s=
pace:pre-wrap"><br><br></span></p><p dir=3D"ltr" style=3D"line-height:1.38;=
margin-top:0pt;margin-bottom:12pt"><span style=3D"font-size:11pt;font-famil=
y:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-weigh=
t:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-a=
lign:baseline;white-space:pre-wrap">Visit a file</span></p><p dir=3D"ltr" s=
tyle=3D"line-height:1.38;margin-top:12pt;margin-bottom:12pt"><span style=3D=
"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-co=
lor:transparent;font-weight:400;font-style:normal;font-variant:normal;text-=
decoration:none;vertical-align:baseline;white-space:pre-wrap">first.txt</sp=
an><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0=
,0);background-color:transparent;font-weight:400;font-style:normal;font-var=
iant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wr=
ap"><br></span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;c=
olor:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:nor=
mal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-=
space:pre-wrap">Set file save encoding to utf-8 C-x RET f utf-8</span><span=
 style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);back=
ground-color:transparent;font-weight:400;font-style:normal;font-variant:nor=
mal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><br>=
</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb=
(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font=
-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pr=
e-wrap">Enter the string</span></p><p dir=3D"ltr" style=3D"line-height:1.38=
;margin-top:12pt;margin-bottom:12pt"><span style=3D"font-size:11pt;font-fam=
ily:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-wei=
ght:400;font-style:normal;font-variant:normal;text-decoration:none;vertical=
-align:baseline;white-space:pre-wrap">=C3=9Cberlegung</span></p><p dir=3D"l=
tr" style=3D"line-height:1.38;margin-top:12pt;margin-bottom:12pt"><span sty=
le=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backgrou=
nd-color:transparent;font-weight:400;font-style:normal;font-variant:normal;=
text-decoration:none;vertical-align:baseline;white-space:pre-wrap">into thi=
s buffer</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:12pt=
;margin-bottom:12pt"><span style=3D"font-size:11pt;font-family:Arial,sans-s=
erif;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-sty=
le:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;=
white-space:pre-wrap">Copy this file as</span><span style=3D"font-size:11pt=
;font-family:Arial,sans-serif;color:rgb(17,85,204);background-color:transpa=
rent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:=
underline;vertical-align:baseline;white-space:pre-wrap"><br></span><span st=
yle=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backgro=
und-color:transparent;font-weight:400;font-style:normal;font-variant:normal=
;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">folder/=
second.txt</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:12=
pt;margin-bottom:12pt"><span style=3D"font-size:11pt;font-family:Arial,sans=
-serif;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-s=
tyle:normal;font-variant:normal;text-decoration:none;vertical-align:baselin=
e;white-space:pre-wrap"><br></span><span style=3D"font-size:11pt;font-famil=
y:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-weigh=
t:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-a=
lign:baseline;white-space:pre-wrap">If I do a C-u C-x d with the paramters =
-laR and afterwards in dired a % m .txt, these two files get marked.</span>=
<span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0)=
;background-color:transparent;font-weight:400;font-style:normal;font-varian=
t:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"=
><br></span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;colo=
r:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal=
;font-variant:normal;text-decoration:none;vertical-align:baseline;white-spa=
ce:pre-wrap"><br></span><span style=3D"font-size:11pt;font-family:Arial,san=
s-serif;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-=
style:normal;font-variant:normal;text-decoration:none;vertical-align:baseli=
ne;white-space:pre-wrap">Pressing A and searching for =C3=9Cber doesn&#39;t=
 give a result</span><span style=3D"font-size:11pt;font-family:Arial,sans-s=
erif;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-sty=
le:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;=
white-space:pre-wrap"><br></span><span style=3D"font-size:11pt;font-family:=
Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:=
400;font-style:normal;font-variant:normal;text-decoration:none;vertical-ali=
gn:baseline;white-space:pre-wrap">Pressing A and searching for ber does ret=
urn the expected tow XREF results HOWEVER in the xref buffer incorrectly di=
splayed as=C2=A0</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-=
top:12pt;margin-bottom:12pt"><span style=3D"font-size:11pt;font-family:Aria=
l,sans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:400;=
font-style:normal;font-variant:normal;text-decoration:none;vertical-align:b=
aseline;white-space:pre-wrap">c:/Users/HoechtlJ/code/est/first.txt</span><s=
pan style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);b=
ackground-color:transparent;font-weight:400;font-style:normal;font-variant:=
normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><=
br></span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:=
rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;f=
ont-variant:normal;text-decoration:none;vertical-align:baseline;white-space=
:pre-wrap">1:\x303\234berlegung</span><span style=3D"font-size:11pt;font-fa=
mily:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-we=
ight:400;font-style:normal;font-variant:normal;text-decoration:none;vertica=
l-align:baseline;white-space:pre-wrap"><br></span><span style=3D"font-size:=
11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transpa=
rent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:=
none;vertical-align:baseline;white-space:pre-wrap">c:/Users/HoechtlJ/code/e=
st/folder/second.txt</span><span style=3D"font-size:11pt;font-family:Arial,=
sans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:400;fo=
nt-style:normal;font-variant:normal;text-decoration:none;vertical-align:bas=
eline;white-space:pre-wrap"><br></span><span style=3D"font-size:11pt;font-f=
amily:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-w=
eight:400;font-style:normal;font-variant:normal;text-decoration:none;vertic=
al-align:baseline;white-space:pre-wrap">1:\x303\234berlegung</span></p><br>=
<p dir=3D"ltr" style=3D"line-height:1.38;margin-top:12pt;margin-bottom:12pt=
"><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,=
0);background-color:transparent;font-weight:400;font-style:normal;font-vari=
ant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wra=
p">M-s a C-s does open the marked files and does find the searched string. =
This one works reliably</span><span style=3D"font-size:11pt;font-family:Ari=
al,sans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:400=
;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:=
baseline;white-space:pre-wrap"><br></span><span style=3D"font-size:11pt;fon=
t-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;fon=
t-weight:400;font-style:normal;font-variant:normal;text-decoration:none;ver=
tical-align:baseline;white-space:pre-wrap"><br></span><span style=3D"font-s=
ize:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:tra=
nsparent;font-weight:400;font-style:normal;font-variant:normal;text-decorat=
ion:none;vertical-align:baseline;white-space:pre-wrap">It seems that the di=
red A command bound to dired-do-find-regexp does introspect the matching fi=
les but guesses a wrong encoding? Visiting the file correctly display the c=
ontent as utf-8</span></p>

<br></div>

--000000000000c483a50654f9e413--




Acknowledgement sent to Johann Höchtl <johann.hoechtl@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#81294; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 30 Jun 2026 16:00:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.