From: Arthur Miller <arthur.miller@live.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Óscar Fuentes" <ofv@wanadoo.es>, emacs-devel@gnu.org
Subject: Re: msys2 build path problems + copy-paste english results in chinese characters
Date: Sun, 05 Dec 2021 09:43:36 +0100 [thread overview]
Message-ID: <AM9PR09MB497786F3FEE30E329C784B65966C9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <83bl1yanmd.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 Dec 2021 20:05:30 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Óscar Fuentes <ofv@wanadoo.es>
>> Date: Thu, 02 Dec 2021 16:40:43 +0100
>>
>> >> If you know a better approach
>> >
>> > Yes, change PATH outside of Emacs. Then live happily ever after.
>>
>> 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).
>>
>> 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.
>>
>> 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.
>>
>> 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 into
mingw64 (/mingw64/bin). So if I wish emacs to find gcc, as & co, and not run it
from the command line, I have to add mingw64/bin to my OS path. If I also wish
Emacs to find gnu ls, I have to add /usr/bin to OS path to, but they are not
recommended to mix, and you also don't recommend setting path from within Emacs
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
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 something
else; I am not into tweaking my system more today, so that will be another day.
next prev parent reply other threads:[~2021-12-05 8:43 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-01 15:04 msys2 build path problems + copy-paste english results in chinese characters arthur miller
2021-12-01 15:55 ` Lars Ingebrigtsen
2021-12-01 18:32 ` Arthur Miller
2021-12-01 18:50 ` Lars Ingebrigtsen
2021-12-01 22:42 ` Arthur Miller
2021-12-01 16:46 ` Eli Zaretskii
2021-12-01 18:25 ` Arthur Miller
2021-12-01 18:44 ` Eli Zaretskii
2021-12-01 22:39 ` Arthur Miller
2021-12-01 23:01 ` Óscar Fuentes
2021-12-02 7:19 ` Eli Zaretskii
2021-12-02 9:42 ` Óscar Fuentes
2021-12-02 10:05 ` Eli Zaretskii
2021-12-02 15:40 ` Óscar Fuentes
2021-12-02 18:05 ` Eli Zaretskii
2021-12-05 8:43 ` Arthur Miller [this message]
2021-12-06 0:38 ` MSYS2 PATH problems with native compilation (was: msys2 build path problems + copy-paste english results in chinese characters) Óscar Fuentes
2021-12-06 14:32 ` Eli Zaretskii
2021-12-06 22:48 ` MSYS2 PATH problems with native compilation Óscar Fuentes
2021-12-07 13:20 ` Eli Zaretskii
2021-12-07 16:09 ` Óscar Fuentes
2021-12-07 17:07 ` Eli Zaretskii
2021-12-07 21:13 ` Óscar Fuentes
2021-12-08 12:34 ` Eli Zaretskii
2021-12-02 7:17 ` msys2 build path problems + copy-paste english results in chinese characters Eli Zaretskii
[not found] ` <AM9PR09MB4977B43C2FC19514E4385B5E966C9@AM9PR09MB4977.eurprd09.prod.outlook.com>
2021-12-05 10:17 ` Eli Zaretskii
2021-12-05 10:57 ` Arthur Miller
-- strict thread matches above, loose matches on Subject: below --
2021-12-02 14:09 Angelo Graziosi
2021-12-02 14:21 ` msys2 build path problems + copy-paste english results in chinese characters Angelo Graziosi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9PR09MB497786F3FEE30E329C784B65966C9@AM9PR09MB4977.eurprd09.prod.outlook.com \
--to=arthur.miller@live.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=ofv@wanadoo.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).