Compare commits

..

1 Commits

Author SHA1 Message Date
Dylan Baker 68e3f24000 fragment: Mingw needs to use POSIX handling for `\\`
ci/woodpecker/pr/woodpecker Pipeline was successful Details
Otherwise it won't correctly escape things like spaces, and can print
out the `\` literal escaping nothing, which causes most shell lexers to
choke.

Fixes: #238
2023-06-08 12:02:28 -07:00
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ fragment_quote(const pkgconf_fragment_t *frag)
(*src > ':' && *src < '=') ||
(*src > '=' && *src < '@') ||
(*src > 'Z' && *src < '\\') ||
#if !defined(_WIN32) && !defined(__MINGW32__)
#ifndef _MSC_VER
(*src == '\\') ||
#endif
(*src > '\\' && *src < '^') ||