diff --git a/changelog.md b/changelog.md index 5b7d74e156d..651c84894d9 100644 --- a/changelog.md +++ b/changelog.md @@ -35,6 +35,7 @@ ### Miscellaneous and Bug Fixes * wmllint now validates `rank=` values in `[campaign]` (issue #7224) * Fixed a crash when checking if abilities are active during game initialisation after loading a saved game. (issues #5643, #7238) + * wmlxgettext now outputs Unix-like paths in .pot file comments even on Windows (issue #7380) ## Version 1.17.11 ### Campaigns diff --git a/data/tools/pywmlx/autof.py b/data/tools/pywmlx/autof.py index 51a87fb7a73..fa29a625119 100644 --- a/data/tools/pywmlx/autof.py +++ b/data/tools/pywmlx/autof.py @@ -17,6 +17,8 @@ def autoscan(pathdir): value = re.sub(r'^\/', '', value) else: value = re.sub(r'^(?:[A-Za-z]\:)?\\', '', value) + # use Unix path separators even on Windows + value = value.replace("\\", "/") filelist.append(value) # end if m # end for name