fragment: Mingw needs to use POSIX handling for `\\`
ci/woodpecker/pr/woodpecker Pipeline was successful
Details
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
parent
5c545fc9dc
commit
6de71767ab
|
@ -438,7 +438,7 @@ fragment_quote(const pkgconf_fragment_t *frag)
|
|||
(*src > ':' && *src < '=') ||
|
||||
(*src > '=' && *src < '@') ||
|
||||
(*src > 'Z' && *src < '\\') ||
|
||||
#ifndef _WIN32
|
||||
#if !defined(_WIN32) && !defined(__MINGW32__)
|
||||
(*src == '\\') ||
|
||||
#endif
|
||||
(*src > '\\' && *src < '^') ||
|
||||
|
|
Loading…
Reference in New Issue