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

Konstantin Tokarev annulen at yandex.ru
Tue Jan 17 19:10:18 CET 2012



17.01.2012, 22:06, "Marat Abrarov" <abrarov at mail.ru>:
> 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?
>

Changing parsing rules will break compatibility with previous Qt versions, so I guess
it cannot be "fixed" in Qt 4.8.x

-- 
Regards,
Konstantin



More information about the Interest mailing list