Closed nishimotz closed 5 years ago
The instances that call open to parse manifests didn't pass the proper encoding. I'm about to push a try build to fix this, along with two other instances of open that needed attention. However, manifests in the zipfile are opened with zipfile.ZipFile.open, and that always opens in binary mode. configobj should be able to handle this, though. I added explanatory comments for this.
A try build is on the way.
@nishimotz: Could you please test this try build? Regardless what I did, I was able to install Focus Highlight just fine, even if I set my NVDA language to Japanese. However, the open function uses the system encoding by default.
Thank you. I will check later.
confirmed that try-python3-open-17889,cceb1f96 can install Focus Highlight 6.1 as expected.
In Japan, system encoding for non-Unicode programs is usually cp932. Current version of Windows 10 has the option for changing it to UTF-8, however, most domestic software do not work correctly with that.
nvda_snapshot_pr9853-17905,6092429c.exe is tested as well.
Fixed in PR #9853 with commit 74431b8
Steps to reproduce:
Actual behavior:
error occurs as follows
Expected behavior:
the error should not occur
System configuration
NVDA installed/portable/running from source:
portable
NVDA version:
threshold_py3_staging-17851,779ca15b
Windows version:
Windows 10 Version 1903, Japanese (ANSI locale i.e. cp932)
Name and version of other software in use when reproducing the issue:
Other information about your system:
Other questions
Does the issue still occur after restarting your PC?
Have you tried any other versions of NVDA? If so, please report their behaviors.
Python 2 based NVDA should work as expected.