From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: msys2 build path problems + copy-paste english results in chinese characters Date: Sun, 05 Dec 2021 09:43:36 +0100 Message-ID: References: <83a6hks26v.fsf@gnu.org> <83pmqgqi6e.fsf@gnu.org> <87czmghqui.fsf@telefonica.net> <834k7rqxru.fsf@gnu.org> <8735nbibqe.fsf@telefonica.net> <83lf13pbib.fsf@gnu.org> <87tufrgglg.fsf@telefonica.net> <83bl1yanmd.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="2983"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 09:44:36 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mtn8M-0000ad-A7 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 09:44:35 +0100 Original-Received: from localhost ([::1]:39924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtn8K-0008Qo-PY for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 03:44:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtn7b-0007mZ-VR for emacs-devel@gnu.org; Sun, 05 Dec 2021 03:43:47 -0500 Original-Received: from mail-oln040092073020.outbound.protection.outlook.com ([40.92.73.20]:48999 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtn7X-0006Av-JG; Sun, 05 Dec 2021 03:43:47 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T1uFc2DtWUrC5dOSizIJoCuiUypAQUTpqh71z1NMZkaTg3tVgC1GkztRjFUJacQQxkupFVvDd/+s8pjucpsP7bTZtuAWXh6ayErTNmQAPyR7E73EqFYZWqiSKYcwa/W+8dSlPCXcafBK+VWVOSbZ7hru13qIBDuk5Upej+VxznxLF6s8qYS2HacV8xDr/74+aWVsaN9FBPxkar2P2iKefbwGiynzZQyax/l/dp7ogcTpTNJsHnkvutkU744kQv7wRxcb98ROvhATPP1Yjf9IZj4vutPXzqXuIht/u6RUOQhyq4Ow22OW0KvLK3QTk3bYuWTQm+pYJzAMxX1aWl5/VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GMKh2KscppA3fJ21HL+TztMn71zIUTBq8F+eikEVSQQ=; b=Q6HSAC2h1zGV8djiEi1lOWKB4A4g+2Ie+ztqfDCh3y48LGHuVJ4yXZ+6fW26XsGdj+373KJFrS3/ybS3zW8QNCOiiVT1lLEwGivgHtoJRV/26DalHQ2BIvVg3jN2gvZpy8R9//+5136WcBEXk/JlDdC8TstwNJj3k0SCMeCJH3N2yXjc7LWt5M5Z/+8MD4VSiJIdMbDK6oZE54HPg6Q1hDWWeS4TGxgQQqfIU5uONpuhFZwQDaI79PiR4tHbFlPokwqbb2c0UumpKXcoSGrO+IPJO9ezzoeCKXbpMcDjD84JGWV51l+Kt5kAKhL//nhh36cAwQhUo1lLETNhUJituQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GMKh2KscppA3fJ21HL+TztMn71zIUTBq8F+eikEVSQQ=; b=p5ckhbMbtC2s8zi0tAwP9/PSvfJ7KYJEIxxLK5MivOAA/uHBsQ0VhBZ7vM3JZcUtIH2y7nXeOF+OWERgw69CoY2vlqyLjzx2WN/cIq2LYFQqmaXSfwR5aV5VzpL9hmn9zTp1Xf9bbHr/M7IuC5S1hfMFEk/FB5lxFf3ugaIwCMZeHWcw60gSrcKFxkVLVg4857OTzI2WWThbVSdcLEIjfQp/MJFeLLcpwYAysWsGly0CkhdvUuD3EHp9mR4oYFiv1m2K1XrMWnXMz+x7lksdgpmwPTP/QX6FVe/6DD/et72DyMQZHrdWic8gBu6AVL5ZsI7RZ/1LMJ+xgVpx4Yomkw== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM9PR09MB4628.eurprd09.prod.outlook.com (2603:10a6:20b:2da::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.11; Sun, 5 Dec 2021 08:43:38 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a%4]) with mapi id 15.20.4755.021; Sun, 5 Dec 2021 08:43:38 +0000 In-Reply-To: <83bl1yanmd.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 Dec 2021 20:05:30 +0200") X-TMN: [Tcpy5svHzFu3nccLTii4e9AWET2XaA/l] X-ClientProxiedBy: GV3P280CA0075.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:a::24) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87tufnwifb.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by GV3P280CA0075.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:a::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.16 via Frontend Transport; Sun, 5 Dec 2021 08:43:37 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2fd50342-593a-448b-88d4-08d9b7cb54a9 X-MS-TrafficTypeDiagnostic: AM9PR09MB4628: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BABC6rQMg+lGCqKmbRFJl1HyoJvX78VSwKQWgCLgNcoRNB8cxe61pzKkp0OhKZQa4T4a7FCSWl6M7Zoz3lR76g6UjlUvQvE1kinpYGsTeG1SPiOzsCZPfzOPcZGTL2R7sbLOr3PZxbGgaJJkCPlUSYLXHu1BMnQEF98i4D2Pn3IP5QGWfmuxAbwKLjdThJ7BXS493poHdr0Sl/f4GTDiQMPEjUD6BWA90Lcvr+nD8iLxG8iJGPPS9y1jr+HuTiA5CRInmNmG1MQZt3OO+J5k2RfvHDE1x2Li1x4VG+OB08Gy6XIyOPkavQPLkwE4ShjY78uJ1HoXBN2+TQnyxTuM+LAr8nvUnGhBJDJqEYntyZPYIDrF17d2WzAk4Gb0Jl9p2vzgwXfqEvh8SbQRrzJ7+gDtZpR/98UDEqFVHP6iMak6WwTlOFP2vGiD1p/tA6mLFwvod2vSrg0WLamwbDRTGrl8yLctCFyLDaQKIVhuAOejTPjMS7wLNiYRsE5OPmCZe0oo+nkUr3FTbmboFfN7Ux6XInIbID6TybdDARTysa305b+MYJchiXY26BH6EO1grqtJ+ht+Pml5O7aMR+LOBg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T0NZWk9GK1dSeFJYMHBlWmgrWXB4QktFUWJhWG5pdkt4blVKMXpOTTJSMlJh?= =?utf-8?B?SW8vUGZhdDJDVnBkVFI2RGI1QU1aUGhjQkk1NnQ2bDZ5VnlYdEZEcDNNUHVv?= =?utf-8?B?SkM4UzJZZUdqT0pCM01PSlh3RnFPbDVsNHE4bTdFZVBaM285dTBwd0tlS1Ex?= =?utf-8?B?WWtLUHFqTnpXMGZVQzh5THZ6WXBjV3dxWVA1VlpWbEJuTjVkMmlnWnNxY2Vr?= =?utf-8?B?VHVZQ1JHbUl1RmpuZFVGSGpyL0hKeFl5M3l6MXdJZzNxNU92Nkp4UkJEeVRv?= =?utf-8?B?dno5Q0RLM2pIN3ZBVytDd1hUZHROYmQxRFdoVXd5T2RYL2dHS25DMzRaMDJk?= =?utf-8?B?TmJuNEpwMWN6WFM3UVRBcnZtcDZ0L2pZRTlLT2ZuNmNJOUNDb3p2UVNoOXJx?= =?utf-8?B?aEd5cTdqYkVjMTduTE1hM2tTaERuNW1uWk1INmI3eTVqQUthRzFkVHEvc1Mz?= =?utf-8?B?RHl2M1JxSEJqcitVdTZSazEySTRieDNPekhOaUhDM3d3NHdzUFZseFBxVm9L?= =?utf-8?B?K054UnR4L2RtN1lFNWdwZmpWTUdWR3h5eHlWUC9tUjJjdmpQb2xSanlIQlVS?= =?utf-8?B?WGF3cnBUc3Z2M0dQUzFrQXluS1JsTUMzSnMwNGdFdEx1aUF4RlQxZHVUUVEz?= =?utf-8?B?UG5OblRrNVNhTHlrNHhXYVNkaE1GcENHSC8xRG X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 2fd50342-593a-448b-88d4-08d9b7cb54a9 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2021 08:43:38.1756 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR09MB4628 Received-SPF: pass client-ip=40.92.73.20; envelope-from=arthur.miller@live.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280969 Archived-At: Eli Zaretskii writes: >> From: =C3=93scar Fuentes >> Date: Thu, 02 Dec 2021 16:40:43 +0100 >>=20 >> >> If you know a better approach >> > >> > Yes, change PATH outside of Emacs. Then live happily ever after. >>=20 >> That's precisely what I prefer to avoid. > > There's no need to avoid it. > >> > One failure is that you put directories with forward slashes into the >> > environment of the programs you invoke, and not all of them like that >> > (although most do cope with that). >>=20 >> Maybe if an application parses PATH on a broken way. So far I found >> none. > > I've definitely seen a few in the past. > >> > Another problem is that after this, PATH used by Emacs and PATH used >> > by sub-processes is different. >>=20 >> I don't know how this could be a problem, even less when emacs.exe lives >> in the directory added to PATH. > > It could be a problem because sub-processes will be able to find > programs that Emacs might not find. > >> > Yet another problem, specific to invoking MSYS2 commands, is that the >> > directory might be incorrectly encoded (if it includes non-ASCII >> > characters), since MSYS2 programs expect UTF-8 encoding AFAIK, whereas >> > Emacs encodes it using the system codepage. >>=20 >> Well, adding directories containing MSYS2/Cygwin applications to PATH is >> risky, something to avoid. Fortunately, on a MSYS2 setup MSYS2 and >> mingw-w64 binaries are strictly separated. Not just strictly separated but they don't seem to like to be mixed. Now coreutils get installed into "msys" (/usr/bin) while GCC gets installed int= o mingw64 (/mingw64/bin). So if I wish emacs to find gcc, as & co, and not ru= n it from the command line, I have to add mingw64/bin to my OS path. If I also w= ish Emacs to find gnu ls, I have to add /usr/bin to OS path to, but they are no= t recommended to mix, and you also don't recommend setting path from within E= macs either, so I am a little bit puzzled here what would is a good practice. I have currently added mingw first, and msys after to the OS paths, so gcc = & co will find it's binaries first, how well it will work I will see. And I also discovered I can't send mail, authentication failed, which is=20 probably .authinfo file not being found or not being decrypted, which also = used to work before. I don't know yet if it is also related to paths or somethin= g else; I am not into tweaking my system more today, so that will be another = day.