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: Sun, 05 Jan 2025 22:16:17 +0200 Message-ID: <86a5c56mpa.fsf@gnu.org> References: <86jzb96qul.fsf@gnu.org> <69ecb6ff-e670-4945-a9d4-82edc4c5f088@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5491"; 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 Sun Jan 05 21:17:27 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 1tUX3t-0001JI-RZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 21:17:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUX3b-0001Zc-MJ; Sun, 05 Jan 2025 15:17:07 -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 1tUX3W-0001ZD-Ao for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 15:17: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 1tUX3W-0001E0-0W for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 15:17:02 -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=m/eoWHi7rSIgq/fECmvSmZrofDgnO7e05GbrXD+ddvI=; b=s+aI4Sl/8CHSO9DlswBvvWOj2Yjtfds1hTHWbk4ghQcYvZWyFJYtos/qI6WLHPfhA7WcKh3jxTXvJlaAMayM2Q+7cLJT2GzFaowQKRfkdzWk6EU3/b/ZY1fPwa8xF+AYnDr0uqpIKKa2HtmR4CPqtUc0pltxAX+ej7ln+7Wh3TUm7flSx+Oj+tRBAvBORo8CBan98ykbespgEClZ2soQ4U+wmAViVXFQ0V5jYPOIfIjkM+SwCjbOccbwBA+p6HSjwQZ1eFV1EnmbiYrWfGuGL1vexQoo087+MXENK0chqrmFzrf0c61ITlLCAgNOYLLkVWlYrt/pFFklHtn4K3NXMQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUX3V-0007XN-RH for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 15:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 20:17:01 +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.173610818928902 (code B ref 75379); Sun, 05 Jan 2025 20:17:01 +0000 Original-Received: (at 75379) by debbugs.gnu.org; 5 Jan 2025 20:16:29 +0000 Original-Received: from localhost ([127.0.0.1]:35385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUX2z-0007W5-3Y for submit@debbugs.gnu.org; Sun, 05 Jan 2025 15:16:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36616) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUX2w-0007Vl-PW for 75379@debbugs.gnu.org; Sun, 05 Jan 2025 15:16:27 -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 1tUX2q-0001AD-RK; Sun, 05 Jan 2025 15:16:20 -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=m/eoWHi7rSIgq/fECmvSmZrofDgnO7e05GbrXD+ddvI=; b=PB1rrDUWJNQr /VTSXO9YyEJxwd+IxmnVgBmxkyh/KNavVvgZEAPzs9V8ZG51Kt5kruuVhVbWedZCtTOXdGjU3o0+n 2riw3SotbgC8D2A1kymg3eC/rjbaDtjeTRccovhS1p62otGWXuofS0TzKoX/78mOPrDDcPK3a0ZgS Qn04qTImVyt9+YzvyX43FF4LH1empg1NbhjOVi2GKmnJciEJkLbkhOOxUh95+QVS4nImMGdZ53Hef r2rzDng/yVIW69dZWwmYXBWTg7UiSQNgzSxLl/n6ms9esOOmfVTZREw6G9DoIvrk6kdkH9yi70ddX IpWxAECC/xzxgtYQTsQefQ==; In-Reply-To: <69ecb6ff-e670-4945-a9d4-82edc4c5f088@gutov.dev> (message from Dmitry Gutov on Sun, 5 Jan 2025 21:35:56 +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:298604 Archived-At: > Date: Sun, 5 Jan 2025 21:35:56 +0200 > Cc: orontee@gmail.com, 75379@debbugs.gnu.org > From: Dmitry Gutov > > 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? 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. For Ripgrep, I don't know. > If yes, is there a way to force locale at least for these ports? I'm not sure, and I don't have a port here that supports translations which I could test. The only hope is if recent versions of Grep are built in a way that does honor the environment variables, because the Unix trick of saying "locale=FOO grep ..." doesn't work on Windows: the locale is a global user-level setting. Does someone who uses Windows have Grep built with gettext, and could try setting the various locale-related environment variables? > > 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... Agree.