How to properly escape white spaces and weird chars in SOURCES

Giuseppe Corbelli <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
Hi all
I am in the pylupdate/translate business and am stumbling upon an 
interesting issue.

I have a
weirdchars.pro
--------------
TRANSLATIONS = it_it.ts

SOURCES = \
     white space.py
     sp&cial.py


white space.py
--------------
tr("white space")


sp&cial.py
----------
tr("sp&cial")


I cannot figure out how to escape the SOURCES filenames in order to get 
pylupdate work.
The current error is:
corbelli@corbelli-linux:~/devel/pylupdate-special$ 
/opt/python/bin/pylupdate5  -verbose weirdchars.pro
pylupdate5 error: Cannot open Python source file 
'/home/corbelli/devel/pylupdate-special/white': No such file or directory
pylupdate5 error: Cannot open Python source file 
'/home/corbelli/devel/pylupdate-special/space.py': No such file or directory

I am tracking it down to pylupdate/proparser.cpp but wanted to know if 
there's something I'm doing wrong.

Thanks
-- 
Giuseppe Corbelli
_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.