[Interest] Invalid command line parsing at QCoreApplication::arguments on MS Windows family
scorp1us at yahoo.com
Tue Jan 17 19:15:27 CET 2012
Because Qt devs use / for folder separators, which avoids the backslash problem (one of Microsoft's biggest mistakes).
It also seems that "/" is coming to be valid in Windows these days. Has anyone else noticed it?
From: Marat Abrarov <abrarov at mail.ru>
To: interest at qt-project.org
Sent: Tuesday, January 17, 2012 1:06 PM
Subject: Re: [Interest] Invalid command line parsing at QCoreApplication::arguments on MS Windows family
To Jason H
> Interesting find. However I'd prefer uniform parsing across all platforms for Qt apps.
> If windows rules breaks platform abstraction (requiring different command lines),
> then I would err on the side of Qt since it's goal is abstraction.
I think it's better to follow the rules of the target platform (like Qt does at GUI).
If at Windows command line argument for Qt-based program (qtapp.exe) is path (name of folder) and it contains spaces and
I need to complete it with backslash then I have to write:
In such situation (at qtapp.exe) QCoreApplication::arguments will return
Amazing, why Qt dev team still haven't found this bug?
Interest mailing list
Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest