https-everywhere-checker
https-everywhere-checker copied to clipboard
(Possibly) charset related issue in test coverage check
This Travis build, called from https://github.com/EFForg/https-everywhere/pull/3726, triggers an error which shouldn't really be triggered.
It seems that the code is matching Unicode regex against IDNA-encoded domain/URL. Unfortunately, that can't be done (cleanly at least), because urlparse/urlunparse does not work with regexps. In the same manner, IDNA-encoding a regexp does not have the result you want, e.g.:
"^http://bernina-zürich\.ch/".decode("utf8").encode("idna")
gives xn--^http://bernina-zrich\\-8lc.ch/
I didn't write the code for the test coverage and if you don't need them, just disable them by setting check_coverage
to false (it's false by default).
I'll change the sample config for the coverage tests to be turned off (as it should be).
I still run in this issue. Is there any chance to get a fix for this or something I where I could help?
Sorry, but what this project would need most is a new maintainer. Since I started a new job I probably won't find time for this, it seems.