Report any problems with CopperSpice
Post Reply
Posts: 128
Joined: Thu Jun 11 2020 12:18 pm


Post by seasoned_geek »

When you visit here:


You find this:

On Unix this list is built from the argc and argv parameters passed to the constructor in the main() function. The string-data in argv is interpreted using QString::fromLocal8Bit(); hence it is not possible to pass, for example, Japanese command line arguments on a system that runs in a Latin1 locale. Most modern Unix systems do not have this limitation, as they are Unicode-based.

In all of the changes moving to QChar32 internally nobody changed this to be QString::fromUtf8() on Linux? :oops:

QString::fromLocal8Bit() would only be needed as an all else fails fallback.

Posts: 284
Joined: Sat Apr 04 2015 2:32 am

Re: QCoreApplication::arguments()

Post by barbara »

Thanks for bringing this to our attention. We will have someone look at this part of the documentation.

Post Reply