From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: Emacs 25.2, win64, env vars Date: Sat, 22 Jul 2017 22:02:03 +0200 Message-ID: References: <83r2xoi5i5.fsf@gnu.org> <837ezfjaoy.fsf@gnu.org> <83inil9cg2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045e6b28d636840554ed75fa" X-Trace: blaine.gmane.org 1500753797 8620 195.159.176.226 (22 Jul 2017 20:03:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2017 20:03:17 +0000 (UTC) Cc: Emacs developers , Noam Postavsky To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 22 22:03:11 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZ0cG-0001fd-QU for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2017 22:03:09 +0200 Original-Received: from localhost ([::1]:48199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZ0cK-0005Bn-Pw for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2017 16:03:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZ0bd-0005BW-Mv for emacs-devel@gnu.org; Sat, 22 Jul 2017 16:02:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZ0bc-0004uk-Fm for emacs-devel@gnu.org; Sat, 22 Jul 2017 16:02:29 -0400 Original-Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:36303) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZ0ba-0004rB-Vu; Sat, 22 Jul 2017 16:02:27 -0400 Original-Received: by mail-qt0-x231.google.com with SMTP id 21so54634912qtx.3; Sat, 22 Jul 2017 13:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hhhAMaPUnON5j2gk36uvia56Yyv0F3+8r1zCzDYtT2E=; b=JuC1XXKZMzTM+89y/nC2ro7rxjLK4EdBVV+MnZMQ1erc9Gsy/88tYGMzbNX3bDeYaM vnkp6PLOQ9aAI5WlTmarCT7QSj1yFxBSa+xschPE5SpdVTIW5WRwy+X2O56KTN+a/y3E r/U88IlfQdyxLYkTrOD1ENGOER5DSdNMnidP5SNLHP3oBWz7xixQJ9YHTb7BYfag8h60 oiZGsbnIswaL2fRkWgjD7NuUcd5K0Z9dhbqSImZmGYINk6Krp67DIniuhTTve2X0cqyU +UnQzExu69x+7yWqY3AESxiQUIV1LEXycqug/b7PDdmCZkXOwWdlz4bL/xIXuV5xPtUr m0pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hhhAMaPUnON5j2gk36uvia56Yyv0F3+8r1zCzDYtT2E=; b=QsSyecQxBUWjeut6g8C8nIfVgJEFuKsneP7wkOiBtMdReMWo0r44R9UXKlr6NEI2YP Z/xf+Vs/OHfuf5uch5zWvNgwGyi3ftCO5YxB6PYzajODM045iaMaIoy89OYDHA6BrlkU 246sqJwcCOwzeZdEwM+dR9kS6ffT6c6Yyo1+jn9Q3GETM0EJqr2N8leaP8o0jW74Mzdk 5WgieiMfh1gjbWeXu23zAg5ZJbUTxi9WnjL+KezGhzhf1bPnvBZby/iqjpIT9ZW0mIil fg2CmsBtGHgkI7/q1dgNssascLwvnPbE66fuqaHKijIaH5RRbkkS9cQQn3S43EGo5qqq dtBQ== X-Gm-Message-State: AIVw110d4QfxSXagHg1I2xe5wZvDjHXrt7cqLuaO/93iC09xXmheJ/zX Dp6ttaP4Wa+OJFzSTRDRgurGxcZMqA== X-Received: by 10.200.62.145 with SMTP id y17mr14122691qtf.142.1500753744506; Sat, 22 Jul 2017 13:02:24 -0700 (PDT) Original-Received: by 10.140.82.21 with HTTP; Sat, 22 Jul 2017 13:02:03 -0700 (PDT) In-Reply-To: <83inil9cg2.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216940 Archived-At: --f403045e6b28d636840554ed75fa Content-Type: text/plain; charset="UTF-8" 2017-07-22 9:07 GMT+02:00 Eli Zaretskii : > > From: Fabrice Popineau > > Date: Tue, 11 Jul 2017 18:24:15 +0200 > > Cc: Noam Postavsky , Emacs developers < > emacs-devel@gnu.org> > > > > And now I understand the reason why you don't see the problem. > > I compile emacs from a mingw64 prompt. I have started emacs from the > msys2 bash. > > This is what messes up the environment. > > > > One one hand, I would say that my proposed fix is harmless and makes > sure case insensitive search is used > > for platforms where env vars are supposed to be case insensitive. > > On the other hand, the problem is the msys2 bash. > > Ping! If we want to fix this problem, please tell the details about > how the MSYS2 Bash causes it. If not, let's decide that we don't > want to fix it. > I thought my previous answer was pretty explicit. MSYS2 bash implements a case sensitive environment, which is different from the native win32 environment. If emacs is started from the bash command line, it inherits this environment. However this is rather unexpected. It is hard to tell if a GUI emacs has been started from bash, cmd or from the desktop. So the fact that the behaviour is changing accorting to the starting environment is annoying. IMHO and according to the least surprise principle, win32 emacs should behave as a native app, and not follow this kind of fancy unixy thing. I would even recommend that emacs inherits from the desktop environment, not the environment from the shell that was used to run emacs. Regards, --f403045e6b28d636840554ed75fa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2017-07-22 9:07 GMT+02:00 Eli Zaretskii <eliz@gnu.org>:
=
> From: Fabrice Popineau <fabrice.popineau@gmail.com>
> Date: Tue, 11 Jul 2017 18:24:15 +0200
> Cc: Noam Postavsky <npostavs@users.sourceforge.net>, Emacs deve= lopers <emacs-devel@gnu.org&g= t;
>
> And now I understand the reason why you don= 9;t see the problem.
> I compile emacs from a mingw64 prompt. I have started emacs from the m= sys2 bash.
> This is what messes up the environment.
>
> One one hand, I would say that my proposed fix is harmless and makes s= ure case insensitive search is used
> for platforms where env vars are supposed to be case insensitive.
> On the other hand, the problem is the msys2 bash.

Ping!=C2=A0 If we want to fix this problem, please tell the details = about
how the MSYS2 Bash causes it.=C2=A0 If not, let's decide that we don= 9;t
want to fix it.

I thought my previous a= nswer was pretty explicit.

MSYS2 bash implements a= case sensitive environment, which is different from the native win32 envir= onment.
If emacs is started from the bash command line, it inheri= ts this environment.
However this is rather unexpected.=C2=A0
It is hard to tell if a GUI emacs has been started from bash, cmd or= from the desktop.
So the fact that the behaviour is changing acc= orting to the starting environment
is annoying.=C2=A0
I= MHO and according to the least surprise principle, win32 emacs should behav= e as a native app, and not follow this kind of fancy unixy thing.
I would even recommend that emacs inherits from the desktop environment, n= ot the environment from the shell that was used to run emacs.
Regards,

--f403045e6b28d636840554ed75fa--