Win32 vector print broken in v 1.0

Summary:

When I try to export via win32 vector print extension, it seems like there is a python3 error regarding a string buffer creation. The export fails on line 191 of print_win32_vector.py, lpszDocName = ctypes.create_string_buffer('Inkscape ' + docname[0].split('\\')[-1])

and program files\inkscape\lib\python3.8\ctypes\__init__.py", line 65, in create_string_buffer

I think there is a change between python2 and 3 that broke it: https://stackoverflow.com/a/7237587

Steps to reproduce:

  • open Inkscape v1.0
  • Extensions > Export > Win32 vector print
  • enter settings (I'm using an epilog printer, and this shows the printer dialogue, press 'print'
  • see error exporting

What happened?

export fails. It looks like ctypes can't make a string buffer in python3, like it can in python2

What should have happened?

Export should have worked. It works in Inkscape v0.92.4 with python2

Version Info:

- Inkscape Version: 1.0 
- Operating System: Windows 10 64 bit
- Operating System version: 2004