[Development] The life of a file name and other possibly mal-encoded strings on non-Windows systems

Tomasz Siekierda sierdzio at gmail.com
Tue Oct 7 09:47:19 CEST 2014

>>> This was discussed to exhaustion in Qt 5's development process. The conclusion
>>> is to remain at status quo since there is no good, technical solution.
>> I’d think that the solution could be to use a dedicated class for file names, perhaps with a base class for uninterpreted platform strings.

Ugh, that begins to sound like Java. Let's have a wrapper for a
wrapper... please don't go that way.

>> > How do you pass it on the command-line? Mind you, QProcess takes a
>> > QStringList
>> > for arguments.
>> It look as if we’d need something like QPlatformString that’s a “thin”
>> wrapper
>> around a QByteArray on unices, and around QString on Windows.
> No, thanks! :)

I fully agree with "no, thanks"

More information about the Development mailing list