[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: msys2 build path problems + copy-paste english results in chinese ch
From: |
Eli Zaretskii |
Subject: |
Re: msys2 build path problems + copy-paste english results in chinese characters |
Date: |
Thu, 02 Dec 2021 20:05:30 +0200 |
> 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.
But the OP definitely wanted MSYS2 executables, that's why he invoked
Emacs from Bash (which is an MSYS2 program).
- Re: msys2 build path problems + copy-paste english results in chinese characters, (continued)
- Re: msys2 build path problems + copy-paste english results in chinese characters, Eli Zaretskii, 2021/12/01
- Re: msys2 build path problems + copy-paste english results in chinese characters, Arthur Miller, 2021/12/01
- Re: msys2 build path problems + copy-paste english results in chinese characters, Eli Zaretskii, 2021/12/01
- Re: msys2 build path problems + copy-paste english results in chinese characters, Arthur Miller, 2021/12/01
- Re: msys2 build path problems + copy-paste english results in chinese characters, Óscar Fuentes, 2021/12/01
- Re: msys2 build path problems + copy-paste english results in chinese characters, Eli Zaretskii, 2021/12/02
- Re: msys2 build path problems + copy-paste english results in chinese characters, Óscar Fuentes, 2021/12/02
- Re: msys2 build path problems + copy-paste english results in chinese characters, Eli Zaretskii, 2021/12/02
- Re: msys2 build path problems + copy-paste english results in chinese characters, Óscar Fuentes, 2021/12/02
- Re: msys2 build path problems + copy-paste english results in chinese characters,
Eli Zaretskii <=
- Re: msys2 build path problems + copy-paste english results in chinese characters, Arthur Miller, 2021/12/05
- MSYS2 PATH problems with native compilation (was: msys2 build path problems + copy-paste english results in chinese characters), Óscar Fuentes, 2021/12/05
- Re: MSYS2 PATH problems with native compilation (was: msys2 build path problems + copy-paste english results in chinese characters), Eli Zaretskii, 2021/12/06
- Re: MSYS2 PATH problems with native compilation, Óscar Fuentes, 2021/12/06
- Re: MSYS2 PATH problems with native compilation, Eli Zaretskii, 2021/12/07
- Re: MSYS2 PATH problems with native compilation, Óscar Fuentes, 2021/12/07
- Re: MSYS2 PATH problems with native compilation, Eli Zaretskii, 2021/12/07
- Re: MSYS2 PATH problems with native compilation, Óscar Fuentes, 2021/12/07
- Re: MSYS2 PATH problems with native compilation, Eli Zaretskii, 2021/12/08
- Re: msys2 build path problems + copy-paste english results in chinese characters, Eli Zaretskii, 2021/12/02