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 13:12:10 +0200 Message-ID: References: <8875281f07b4d23d857c@heytings.org> <83o7hd4n5n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30211"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , gregory@heytings.org, 65908@debbugs.gnu.org, stefankangas@gmail.com, 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 14:08:37 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 1qoN9g-0007eB-Vr for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Oct 2023 14:08:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoMHh-0001mn-JF; Thu, 05 Oct 2023 07:12:49 -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 1qoMHd-0001mT-Ez for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 07:12: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 1qoMHc-0003RA-OW for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 07:12:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoMHu-00034C-HW for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 07:13: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 11:13: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.169650435911756 (code B ref 65908); Thu, 05 Oct 2023 11:13:02 +0000 Original-Received: (at 65908) by debbugs.gnu.org; 5 Oct 2023 11:12:39 +0000 Original-Received: from localhost ([127.0.0.1]:46125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoMHW-00033Y-IK for submit@debbugs.gnu.org; Thu, 05 Oct 2023 07:12:38 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:46583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoMHU-00033L-29 for 65908@debbugs.gnu.org; Thu, 05 Oct 2023 07:12:37 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-32157c8e4c7so858013f8f.1 for <65908@debbugs.gnu.org>; Thu, 05 Oct 2023 04:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696504332; x=1697109132; darn=debbugs.gnu.org; h=content-transfer-encoding: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=CENt2TIGnwJbXt3uXbFpS5O5P7aAq/TcQfXccIeCjqY=; b=TguhlNuOeZdmah8V9sTcM9sUT+Q1VWWP/C59m9vCr4iDyMFVMJwVIegJI6pliJcu8u +MBelCNVhmHp7VP1XwBjwtQx9Nb+qB5zGZsXePlBhjRzDFGy2I5Y7vhRpKZ91uPkSuAP B6cPuZ4t3RBLfwdBfXt1oF67+icfZbrc3+nv4ecAaPCGHv6CS6FVpOHUrTQIvxKSzPWL TnWCUiH44HdwI6ihOdyEu2yD15JUm8EBhvu/FJtWYJEpdkaISQ2uJPq1Z+ObBnhSqGH3 JZU2rFYvWtnsEDfz7FP0lQzzFoO/wzAqiOUBdfL4CPRKpvAjzde62mC8LqAsHwrlMnn/ CBRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696504332; x=1697109132; h=content-transfer-encoding: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=CENt2TIGnwJbXt3uXbFpS5O5P7aAq/TcQfXccIeCjqY=; b=tQ3I4QhIhF1qVkefpo5JzFSc0LYwb3X7BUInBL6GFYXv7pMZPbcmyABHjEL0pmh/Wg aZWNQhfdBDi+QXpSXlpo7lPNS4hGUPOjgtgHY1FEwLBtWM8yQ6uxvw06aUf619k94nLc En3WLt15FpC1jQJpxiLkatkSAtR2+btfjSfEPrnn6XqIzAZCsKQiKHPCo8J/zvqPVTbN o8XyCdLRmpAfN+aolIQVsxvIef4wj0tqtsqHotpUATtWx6Zw31kEc3DnUdU5nszt7fxA QTGYsCTqdyW5ulEpdmB6Pfrd+ek2o+eS/vF4wuZa6FpMzoxY8LGQ4s06lg3GcZrxEsVI OjqQ== X-Gm-Message-State: AOJu0YwpMLoYX8fTcei8nMXldO5SvWlpw2uEftduLwYNPAqkZSKfyRd+ c5Xr7P9icrQzEOxrGrK5x3s= X-Google-Smtp-Source: AGHT+IFGXlq4aZlt66yRKMuwbjD4d57Nh0KSha8ZNRt/IiUtSB5D3cvyA2VHP7RxJzCYEEORLXJOew== X-Received: by 2002:adf:f28b:0:b0:321:67f4:8bd7 with SMTP id k11-20020adff28b000000b0032167f48bd7mr4703021wro.32.1696504331665; Thu, 05 Oct 2023 04:12:11 -0700 (PDT) Original-Received: from Pro.fritz.box (pd9e3618b.dip0.t-ipconnect.de. [217.227.97.139]) by smtp.gmail.com with ESMTPSA id j14-20020a5d564e000000b0032320a9b010sm1549625wrw.28.2023.10.05.04.12.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 04:12:11 -0700 (PDT) In-Reply-To: (Alan Third's message of "Thu, 5 Oct 2023 10:48:23 +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:271867 Archived-At: Alan Third writes: > On Thu, Oct 05, 2023 at 10:52:21AM +0200, Gerd M=C3=B6llmann wrote: >> Conclusion so far, for me, >>=20 >> - don't selocale in ns_init_locale, only setenv LANG, or set LC_CTYPE, >> maybe. > > setlocale in ns_init_locale is only there to check if the locale is > valid, it resets it back to its initial value at the end. That's okay. What I meant was setting the old locale at the end. >> - localeIndentifier is wrong for mixed cases like "en_DE". > > There was some trouble with warning messages in the terminal when > using an invalid locale ID (see bug#51321), but that may only be > because Daniel had changed the code to set LC_ALL instead of LANG. Thanks, I'll take a look. > > I preferred setting LANG anyway because it acts as a fallback, and > this is pretty much intended as a fallback, anything else explicitly > set will override it. I think that's TRT, indeed. > > Out of interest, when is it slow? Is it when we have an invalid locale > ID? That's an interesting question--whatever I do on master, it's almost equally slow :-). It would be nice if I could get at least the right character encoding on my system... On the plus side, I at least know now what's happening, although I don't know what to do. BTW, @ccsmile: What are your locale settings? Aprt from that, I'm currently trying to get profiling working on my old Macbook Pro, to compare the profiles of the 2 commits on emacs-29 which show the difference. That could maybe answer your question. Buhut... I can't currently get Instruments to work, which might be related to the fact that I've updated my unsupported by Apple Macbook to Sonoma with OCLP. Buhut -- maybe the new thunderbolt/magsafe cable for my display arrives soon, so that I can use my Mac mini again. A lot of construction sites ahead :-).