From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#65908: 29.1.50; Emacs 29 regresses on macOS Date: Thu, 05 Oct 2023 07:55:55 +0200 Message-ID: References: <83il7m6dmo.fsf@gnu.org> <8875281f07b4d23d857c@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21770"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gregory Heytings , 65908@debbugs.gnu.org, Eli Zaretskii , Stefan Kangas , ccsmile2008@outlook.com To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 05 07:57:10 2023 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 1qoHME-0005Nl-Lt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Oct 2023 07:57:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoHM0-0008PD-W7; Thu, 05 Oct 2023 01:56:57 -0400 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 1qoHLo-0008JP-Os for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 01:56:46 -0400 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 1qoHLo-0002qO-GD for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 01:56:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoHM6-0002lt-Fk for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 01:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Oct 2023 05:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65908 X-GNU-PR-Package: emacs Original-Received: via spool by 65908-submit@debbugs.gnu.org id=B65908.169648538310597 (code B ref 65908); Thu, 05 Oct 2023 05:57:02 +0000 Original-Received: (at 65908) by debbugs.gnu.org; 5 Oct 2023 05:56:23 +0000 Original-Received: from localhost ([127.0.0.1]:45827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoHLS-0002kr-Ty for submit@debbugs.gnu.org; Thu, 05 Oct 2023 01:56:23 -0400 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:55656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoHLR-0002kc-8Q for 65908@debbugs.gnu.org; Thu, 05 Oct 2023 01:56:21 -0400 Original-Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-99de884ad25so102432566b.3 for <65908@debbugs.gnu.org>; Wed, 04 Oct 2023 22:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696485357; x=1697090157; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Bdu3Wpf80pwjX017iQspPL1CF5QhpdWvl8f0MdYtf34=; b=N28WImxI0pxmnWxz7Qbv1bjQ5J7kIv4Bo8p61FOY2XE0Mr7ADHpRMMu95flT7K06ph yTBHKhQVK1NfNy9Pnaf6rYEiY4ui6eD+s/jVt7eA9cG+R2RZCaVKmrRnMNkMyoxiYicZ 2RglKoBHdIMTyUNiEDgX5GzNLLZOCbf/CdJXK/aRXIkfuxrUslQtxVFH+mb4AD/yYJ9P vLatRXCUGVfaIo3J4uFfVRRYLW2iT9x9Cg5nA5wp0+6Tcwgpx7UqzWLb7sWEEQ67i99t y1bnDR782Wxk0qCbvmMjbt1bvwYr/XTNNSTMsBRvZqPVqEJ206V/HntiqI7YHRbOfjut km6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696485357; x=1697090157; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Bdu3Wpf80pwjX017iQspPL1CF5QhpdWvl8f0MdYtf34=; b=YyRnSzbZe4BU0S+4pXQsJeSIN8xw55h1o9VXs6SU6Dwmt/x/ry9WnzwAiuAnDu0ya4 K4854pG8eRWWW5kgO4mEW4PaqvzAWdPYRjScEBQTLnmlwDRk6FC01hlQpb6S3VkAiYqa fon8IwXJBywEqDmUMQQehNvSV0XplsDDPwzF90B1ZEQt+7S+6Gn+wccsjQK2vS3cj7xs sd0N9GsRexgSRqtEWU5q53eBgHdtMR5Da7tHjULA8nQKw2S6aF/addKyGDiwaTSJD+lV rnp3kbgX2hvNfjPWh1NMD395cj05PM940wiDloRkMpWGp4DZJR2uxc/DkT526LFIY6en OHTg== X-Gm-Message-State: AOJu0Yx4njrYCKyLioeYoCcWhB7ODOJ/zj16wYVHEU1HpDWYP/gyMV6Q KiOBGRp7FdYKM0svyW4Lb+Q= X-Google-Smtp-Source: AGHT+IFvBymDe/xF5pnaXCQdfdl7McN6GtoN69Rkm7L/IBtQVezAvau5QmujRu16uITtMUghG5yzxg== X-Received: by 2002:a17:906:32c8:b0:9ae:6ffd:be0d with SMTP id k8-20020a17090632c800b009ae6ffdbe0dmr4096979ejk.50.1696485357143; Wed, 04 Oct 2023 22:55:57 -0700 (PDT) Original-Received: from Pro.fritz.box (pd9e3618b.dip0.t-ipconnect.de. [217.227.97.139]) by smtp.gmail.com with ESMTPSA id r11-20020a170906364b00b009a1a5a7ebacsm550800ejb.201.2023.10.04.22.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 22:55:56 -0700 (PDT) In-Reply-To: (Alan Third's message of "Wed, 4 Oct 2023 22:16:22 +0100") 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:271842 Archived-At: Alan Third writes: >> which is the output of 'locale' in a terminal, translated to Elisp. >> With these settings, the slowdown is gone, without changing the code. > > So is Emacs run in the terminal with a LANG of something like > en_GB.UTF-8 slower too? Because iirc my mac's terminal doesn't default > to 'C' and I don't see anything GUI specific in the test code... > > FWIW I don't see any meaningful difference using different locale > settings on my Debian box, which makes me wonder if there is some > low-level darwin code that reads the locale from the environment. Any > idea if it's loading the files or stepping through the defuns that's > slower, or both? > > Long story short: I have no idea what's going on here. Me neither. I tried to find something definitive about locales+bundles Apple's docs, and on the Internet in general, but failed miserably. What a mess. Anyway, something is odd here, I think. When I start 058c012f73d4abe014ace44b46c23babd48aebbc by double-clicking Emacs.app, then M-x shell, I get $ locale LANG="" LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL= That can't be right, or is it? The same, one commit before that: $ locale LANG="en_DE.UTF-8" LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL= At least LANG looks correct to me (I'm using an English UI, in DE.). The LC_* are odd, though. As an aside - vscode sets all of these vars to "en_US.UTF-8" which is looks wrong, and the Zed editor does the same, except for LANG which it set to "". I must admit that I can't come to a conclusion here. Maybe the right thing would be LANG="en_DE.UTF-8" plus setting LC_ALL=$LANG like vscode?