WIP: Fix MinGW escaping #249

Draft
dcbaker wants to merge 2 commits from dcbaker/pkgconf:submit/fix-mingw-escaping into master

We need to use POSIX handling of \\ in MinGW, not the Windows rules.

I'm kinda expecting the test I added to fail as I don't have Kyua and it isn't available for MinGW either

Fixes: #238

We need to use POSIX handling of `\\` in MinGW, not the Windows rules. I'm kinda expecting the test I added to fail as I don't have Kyua and it isn't available for MinGW either Fixes: #238
dcbaker added 2 commits 2023-06-05 21:45:15 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
6de71767ab
fragment: Mingw needs to use POSIX handling for `\\`
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
dcbaker changed title from Fix MinGW escaping to WIP: Fix MinGW escaping 2023-06-07 17:37:11 +00:00

After some discussion with Lazka, we're wondering if the conditional behavior is wrong in general, so I need to run some tests with MSVC. I've marked this as WIP in the mean time

After some discussion with Lazka, we're wondering if the conditional behavior is wrong in general, so I need to run some tests with MSVC. I've marked this as WIP in the mean time
dcbaker force-pushed submit/fix-mingw-escaping from 6de71767ab to 68e3f24000 2023-06-08 19:02:46 +00:00 Compare
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b dcbaker-submit/fix-mingw-escaping master
git pull submit/fix-mingw-escaping

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff dcbaker-submit/fix-mingw-escaping
git push origin master
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#249
There is no content yet.