System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06
Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: rB3e85bb34d0d7
Worked: (newest version of Blender that worked as expected)
Short description of error
The exported keymap is not encoded with UTF-8 but an encoding depending on the locale. This produces a file which cannot be properly imported afterwards.
The keyconfig_export_as_data should specify the encoding when using open().
Exact steps for others to reproduce the error
- Change your locale to e.g. Simplified Chinese.
- Use the operator script to create an entry in the keymap.
- Change the string property of the operator in the keymap to Chinese characters.
- Export the keymap.