[Interest] Invalid command line parsing at QCoreApplication::arguments on MS Windows family

Jason H 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:

    qtapp.exe "path\"

In such situation (at qtapp.exe) QCoreApplication::arguments will return 

    path"

instead 

    path\

Amazing, why Qt dev team still haven't found this bug?

Regards,
Marat Abrarov.


_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120117/244731aa/attachment.html>


More information about the Interest mailing list