Re: [python-win32] why do I get error 1804 from win32print.SetJob?

2018-11-20 Thread Glenn Linderman
On 11/19/2018 11:52 AM, Tim Roberts wrote: Glenn Linderman wrote: I've not coded up the equivalent C program, as I don't have a C compiler installed here, and haven't done any C coding for 8 or 10 years. Were you able to reproduce the problem, or is your error analysis based on code readin

Re: [python-win32] why do I get error 1804 from win32print.SetJob?

2018-11-20 Thread Tim Roberts
Glenn Linderman wrote: I looked at the win32print.cpp file. There were lots of Python-internals stuff there that I don't really follow well. I didn't see anything obviously wrong, but I got to wondering about the code that builds the structure... it puts in UTF-8 text strings (which would be

Re: [python-win32] why do I get error 1804 from win32print.SetJob?

2018-11-20 Thread Tim Roberts
Tim Roberts wrote: This had to work at some point.  All of these things get tested. I just don't know what would have changed.  If I get motivated (I've already spent too much time on this ;), I'll see if I can get your script to fail here. For what it's worth, I AM able to duplicate the pr

Re: [python-win32] why do I get error 1804 from win32print.SetJob?

2018-11-20 Thread Tim Roberts
Glenn Linderman wrote: Of course, the GetJob is decoding the structure properly... but its PyBuildValue parameter strings are much more complex than the PyArg_ParseTupleAndKewyords parameter strings, and there is mention of TCHAR in the JobToPy, but not in the PyToJob, so that makes it further

Re: [python-win32] why do I get error 1804 from win32print.SetJob?

2018-11-20 Thread Glenn Linderman
On 11/20/2018 10:49 AM, Tim Roberts wrote: Glenn Linderman wrote: Of course, the GetJob is decoding the structure properly... but its PyBuildValue parameter strings are much more complex than the PyArg_ParseTupleAndKewyords parameter strings, and there is mention of TCHAR in the JobToPy, but n