The solution I posted yesterday does its job.
But it restores English for MSYS2 only, and not for other
applications that may suffer from the same problem.
In the next section, I provide a system-wide solution.
System-wide solution 1
Press WinKey and type envi
.
Then click Edit the system environment variables >
Environment Variables....
The Environment Variables window opens.
The upper frame is titled User variables for <username>,
and the lower frame is titled System variables.
Under System variables, look for variables LANG
and/or LC_ALL
.
In my case, the variable LANG
was set to my local language, and
not to en_US.UTF-8
.
I just deleted the LANG
variable.
Then I restarted MSYS2, and English was restored.
Note
The variables LANG
and LC_ALL
do the same thing.
The only difference is that
LC_ALL
overrides LANG
.
I experimented with this myself, and can confirm that – yes indeed :
LC_ALL
takes precedence over LANG
.
1
Inspired by this answer.