From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75379: 30.0.93; project-find-regexp expects "C" or "en" locale Date: Tue, 07 Jan 2025 16:23:05 +0200 Message-ID: <86r05e4sae.fsf@gnu.org> References: <86jzb96qul.fsf@gnu.org> <69ecb6ff-e670-4945-a9d4-82edc4c5f088@gutov.dev> <86a5c56mpa.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36487"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75379@debbugs.gnu.org, orontee@gmail.com To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 07 15:24:21 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 1tVAVJ-0009Ia-3s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jan 2025 15:24:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVAV2-00074n-QJ; Tue, 07 Jan 2025 09:24:04 -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 1tVAV1-00074P-KN for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 09:24:03 -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 1tVAV1-0003ee-Bq for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 09:24:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=t84l4GELRAPfYokEdbySHCjeVQhN1jNGclGGehgSkVs=; b=ckgWdysfQ4EBFYPJqwRqt5EujCnLiFW6vWOWAmSFDpw5GimJjiEsNYK240bil3JMIZRYtn0Swkx6s0zG6HHiAsy0ryeYW7ngCCi28CDkpY3KU4WeK5NISOwSblYk8IYin2gZXCR3elVSC1PcF4qMc64LqTTXaT1oretrr8g1C7bkpo7I+zqD3Ba1qn8ahp23kjUkAVp1icQY/uuSsI0q64cB6kpYwUyaDaVEAeuwsi25brykUvbMQFv6FZrJiUHJYb0NHmLFANq7rL5PJVAJNR3Xpd9P7AP/Nc7rcJnd14m4OcQYyMn2ztmwqJcv/C1XJqJZiIrFspipUTrL3yIMwA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVAV0-0001lL-5F for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 09:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jan 2025 14:24: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.17362597966715 (code B ref 75379); Tue, 07 Jan 2025 14:24:02 +0000 Original-Received: (at 75379) by debbugs.gnu.org; 7 Jan 2025 14:23:16 +0000 Original-Received: from localhost ([127.0.0.1]:42304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVAUG-0001kE-9r for submit@debbugs.gnu.org; Tue, 07 Jan 2025 09:23:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43090) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVAUD-0001jw-5r for 75379@debbugs.gnu.org; Tue, 07 Jan 2025 09:23:13 -0500 Original-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 ) id 1tVAU7-0003ag-Q3; Tue, 07 Jan 2025 09:23:07 -0500 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=t84l4GELRAPfYokEdbySHCjeVQhN1jNGclGGehgSkVs=; b=d1wldoa3+hFD I9YLKiToWQO/X6PB55igfGEDepVbtkXP+YTNmfxj+7V76s02ljaDU7yFkyTiUGRwxqbT6yAY6YiwI 6sW7HmZnIsR6Oh4IwQ0DAHvku7oPP1JciVj3S6Z3/dyo8cHMsiA+O495ZfpnTjfov/QBFmFX+6bnJ hHfbQud4Kq9LEtixKBAkCaXUe4nPKDyRyyL3kMPCmb5O6q/G6KN3F2i9nmf8gKcnkN5ycCfhtfg/l oTj2CiYzAgF73czbbJrDZCpORGz0DmlwypHP+UOrBZkWkm9dLqm6OK6fHx8V9jbZythncdAPQrwz3 oCjzUEgZROKxMWNF5wcEVg==; In-Reply-To: (message from Dmitry Gutov on Tue, 7 Jan 2025 16:17:24 +0200) 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:298722 Archived-At: > Date: Tue, 7 Jan 2025 16:17:24 +0200 > Cc: orontee@gmail.com, 75379@debbugs.gnu.org > From: Dmitry Gutov > > On 05/01/2025 22:16, Eli Zaretskii wrote: > > >>> 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? > > > > For Grep, it depends on how it was configured when building. The > > default configuration uses gettext to translate messages, and this > > message is marked as translated. > > Okay, but if it's not configured to use gettext, would it just use > English, or are there some other mechanisms? It will output the original English messages unchanged. > Looking at > https://stackoverflow.com/questions/9268379/non-localized-version-of-mingw-msys2, > there recommendations are along the standard lines of using either LANG > or LC_ALL. If that's the environment variables, they don't work reliably on Windows, as I explained. > > For Ripgrep, I don't know. > > It seems to me Ripgrep is simply not translated, which is just fine for us. Yes.