View Single Post
Old 08-28-2008, 12:25 PM   #169
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,451
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by beowulf573 View Post
Yep, I'm using the unicode version of CreateProcess. Passing Unicode titles work, it's the file names that are an issue. I ran dumpbin against web2lrf.exe and it's only importing the ASCII version of CreateFile (CreateFileA) so it's incapable of creating files with Unicode file names.

Apparently this is a long standing issue with python that I don't think is fully resolved yet. From what I've read googling about it's sticky problem depending upon what version of python you're using and how you instantiate the file object. However, I'm far from a python expert and am most likely wrong.

If you want I can create a set of testcases and sample code and create a ticket on your site.
Do that, I'll look into it. calibre already has an extension module to make interfacing with windows a little less bug prone. Worst case, I could just add a wrapper around CreateFileW and replace open with that.
kovidgoyal is offline   Reply With Quote