Add patch that resolves the issue, found after r250991 in src HEAD.
Investigation and the patch are from Marcel Moolenaar.
I also added upstream bug-report, based on Marcel's info:
There also was relevant discussion on current@:
Please see there for details of the issue.
Submitted by: marcel (python@ ML)
Reported by: many