]> granicus.if.org Git - graphviz/commitdiff
gvpr: correct fix for absolute paths to work also on MinGW
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 7 Jan 2022 13:03:00 +0000 (14:03 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 08:35:27 +0000 (09:35 +0100)
Fixes https://gitlab.com/graphviz/graphviz/-/issues/1780 on MinGW.

Without this fix, test_1780 fails:

__________________________________ test_1780 __________________________________
Traceback (most recent call last):
  File "C:/Users/magja/graphviz2/rtest/test_regression.py", line 594, in test_1780
    subprocess.check_call(["gvpr", "-f", clustg], stdin=subprocess.DEVNULL)
  File "C:/tools/msys64/mingw64/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gvpr', '-f', WindowsPath('C:/Users/magja/graphviz2/cmd/gvpr/lib/clustg')]' returned non-zero exit status 4294967295.
---------------------------- Captured stderr call -----------------------------
gvpr: gvpr
Usage: gvpr gvpr

CHANGELOG.md
lib/gvpr/gvpr.c

index 6b28547849503b66b2f3c4674cc1535997039477..c80662d1c939429420bd9d5049bf6b7ed84cc071 100644 (file)
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - mismatched format string in `mingle`
 - Building from scratch with Visual Studio fails #2175
 - Plugins are not configured on MinGW #2176
+- gvpr on MinGW does not support absolute paths #1780
 
 ## [2.50.0] – 2021-12-04
 
index 4a537923511cefd2cf962ef5840b8279c781c3e0..d9d4f7c1f659a6399a095b1e58837435a817f12c 100644 (file)
@@ -177,7 +177,7 @@ static int parseArgs(char *s, int argc, char ***argv)
 }
 
 
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__MINGW32__)
 #define PATHSEP '\\'
 #define LISTSEP ';'
 #else