From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#75379: 30.0.93; project-find-regexp expects "C" or "en" locale Date: Sun, 5 Jan 2025 21:35:56 +0200 Message-ID: <69ecb6ff-e670-4945-a9d4-82edc4c5f088@gutov.dev> References: <86jzb96qul.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30985"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 75379@debbugs.gnu.org, orontee@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 20:37:20 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUWR4-0007rq-DM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 20:37:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUWQt-0005kN-Rk; Sun, 05 Jan 2025 14:37:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUWQo-0005jq-Nh for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 14:37:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUWQo-0006p1-Fb for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 14:37:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=1bODyJtwxbk9UVTmWH2bk4IXli8V1PprwB2l7XMYat8=; b=D/miOto0A63Ryle19FjxhSJGSKR6Vv1+vdpw4MFzagxCfYU3vLDOnlOi+RN182sZV1nFh3l06V29YoeGyryIHGymSe0eeVbWYcx+5iDGz/SWHuQl9HYhuTCuvlfRIJeOulU4th95MwxehEApSNIfx70mGOTsCaMCSkCImPsZZYstRzQ/5SJASsnHaG14dXsFxXpXPAr3EWUa/YlxM5QKY/U2arMYIEzeztEvaUC5EIb+T53WFciJ3eAnE5wzuIe0GbXgDP9u5i8Hl7eDCY8tXi4HnL4XcnwK2KfVphAqG67nlOtL56Ha+/bygVFwZuRznrYImODmGj91kcVYnWXbbA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUWQo-0005RO-A2 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 14:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 19:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75379 X-GNU-PR-Package: emacs Original-Received: via spool by 75379-submit@debbugs.gnu.org id=B75379.173610576820782 (code B ref 75379); Sun, 05 Jan 2025 19:37:02 +0000 Original-Received: (at 75379) by debbugs.gnu.org; 5 Jan 2025 19:36:08 +0000 Original-Received: from localhost ([127.0.0.1]:35319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUWPw-0005P8-D6 for submit@debbugs.gnu.org; Sun, 05 Jan 2025 14:36:08 -0500 Original-Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]:34019) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUWPu-0005OX-5R for 75379@debbugs.gnu.org; Sun, 05 Jan 2025 14:36:06 -0500 Original-Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.stl.internal (Postfix) with ESMTP id B03B7254012F; Sun, 5 Jan 2025 14:36:00 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Sun, 05 Jan 2025 14:36:00 -0500 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=fm1; t=1736105760; x=1736192160; bh=1bODyJtwxbk9UVTmWH2bk4IXli8V1PprwB2l7XMYat8=; b= aWpx/gMDl+dSmXf1pwJxIaAEPBJwRIYBCG1gVABa/3C2SFRyWiqJWfkiODs7hwcC h0RKpHGgOKoCDVoGcSTj9sKNsLEDRBXUInT4wjEnOk5dhBo8Xvfpyc5UStCH/fWZ KKeh9iQPT8hM7afRjpa28aznNy21yZ6LQO3RV2AR2wSCay+lYJFZrlCJTiGhPJ0k sSXL0qfL0BNe3FKKgvKfgNZpjkRFNAVReTQjh2moSaULpcE/kxKeP5jFHvasEQzf wjJIR0rHuc0y5lbgqJWaL+023ki+US+iqmMCbpxZnb84hvT55XVvvBUZbGJ2iwjd lG429rLeetu0+GHVbJtOIQ== 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=fm2; t=1736105760; x= 1736192160; bh=1bODyJtwxbk9UVTmWH2bk4IXli8V1PprwB2l7XMYat8=; b=g U5hlphurkTfN4iEJfb50r0WzPHraUkyuToE8HWVYXJZStfEP4D/hkxQYWoQP5oCK XXs832HsQ4Xtu8h89ekeF+wN0gMZnqEnJXWhITNw4b3v659uhZewd3yIWhBO5t1l BMRkXs0H2VPpVtCgF8JUqiAz3bSsluZNIN6svN2ROXjazD2VmC+Mbq6Ko86wDRt1 b+6GGBWvtJWsd8bObzvQlIqTvxBd20XR99pJFcKUEMuLlHfRHgcx2oiZrWtsBuxr 8B6Wl9E22h/pHigDoavrw+aKiVr2egCm2Wu5ZzF9JibZktNhaZbGz8wiSkEdI+qd Oopthc8ZYG5rw3XgjPHVg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudefkedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddv jeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrd guvghvqeenucggtffrrghtthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeu fedtvddtveefhfdvveegudejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthht ohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiisehgnhhurdhorh hgpdhrtghpthhtohepohhrohhnthgvvgesghhmrghilhdrtghomhdprhgtphhtthhopeej heefjeelseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Jan 2025 14:35:58 -0500 (EST) Content-Language: en-US In-Reply-To: <86jzb96qul.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298600 Archived-At: On 05/01/2025 20:46, Eli Zaretskii wrote: >> Date: Sun, 5 Jan 2025 20:03:34 +0200 >> From: Dmitry Gutov >> >> Overriding the language seems indeed the way to go here. >> >> About using LANG specifically, any chance that it might interfere with >> the system's configured encoding, e.g. UTF-8 vs other? In your example, >> does searching for accented characters work as well? >> >> IIUC we can try LC_MESSAGES as the more specialized var. Does >> LC_MESSAGES=en work as well? > > Please note that this doesn't work on Windows. > > First, the Windows locale-dependent routines don't heed environment > variables, so setting LANG etc. in the environment will only do what > you expect if the program in question was either explicitly programmed > to pay attention to those variables or was linked with Gnulib > replacements for locale functions. > > And second LC_MESSAGES is not supported by Windows locales at all. Okay, but first of all, do Grep or Ripgrep use different localizations on Windows, not just English? If yes, is there a way to force locale at least for these ports? > Can't we instead have a database of these messages, like we do with > the "password" prompts? Like the one is 'password-word-equivalents'? It seems like the approach of last resort. But if nothing else will work...