diff options
| author | Zach White <skullydazed@gmail.com> | 2021-02-27 12:00:50 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-27 12:00:50 -0800 |
| commit | 1581ea48dcd48d0d3f42cc09b388c468aedec45d (patch) | |
| tree | 2d028036a4bf80c2e47b952931544f95ba2174e9 /lib/python/qmk/os_helpers | |
| parent | 23ed6c4ec0bfb27612da8a7b78d1b484acc23f3f (diff) | |
| download | qmk_firmware-1581ea48dcd48d0d3f42cc09b388c468aedec45d.tar.gz qmk_firmware-1581ea48dcd48d0d3f42cc09b388c468aedec45d.zip | |
Fix develop (#12039)
Fixes file encoding errors on Windows, and layouts not correctly merging into info.json.
* force utf8 encoding
* correctly merge layouts and layout aliases
* show what aliases point to
Diffstat (limited to 'lib/python/qmk/os_helpers')
| -rw-r--r-- | lib/python/qmk/os_helpers/linux/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/os_helpers/linux/__init__.py b/lib/python/qmk/os_helpers/linux/__init__.py index a04ac4f8a..9e73964e4 100644 --- a/lib/python/qmk/os_helpers/linux/__init__.py +++ b/lib/python/qmk/os_helpers/linux/__init__.py | |||
| @@ -95,7 +95,7 @@ def check_udev_rules(): | |||
| 95 | 95 | ||
| 96 | # Collect all rules from the config files | 96 | # Collect all rules from the config files |
| 97 | for rule_file in udev_rules: | 97 | for rule_file in udev_rules: |
| 98 | for line in rule_file.read_text().split('\n'): | 98 | for line in rule_file.read_text(encoding='utf-8').split('\n'): |
| 99 | line = line.strip() | 99 | line = line.strip() |
| 100 | if not line.startswith("#") and len(line): | 100 | if not line.startswith("#") and len(line): |
| 101 | current_rules.add(line) | 101 | current_rules.add(line) |
