I have a elisp script that needs to work across different OS platform. So I need to use the convert-standard-filename
to make sure the filename confirms to OS standard.
But I found Emacs for Windows can handle Windows filename correctly, and it somehow cannot handle the filename returned by the convert-standard-filename
.
So I need a way to test if the script is executing in s minGW
environment, and return the raw filename.
MSYSTEM
is usually set. You could check against it with something like(if (getenv "MSYSTEM") ...)
mingw
system.system-type
?(if (string-match "MINGW" (getenv "MSYSTEM")) ...)
. I can't say if works for MinGW.minGW
does not set theMSYSTEM
variable.