From: jschneider...@gog.com
Sent: piÄ…tek, 3 marca 2017 16:52
To: Jesus Fernandez
Subject: RE: [Interest] Issue with expanding an environmental variable.


Are you using QString::fromUtf8 to decode the received QByteArray?
_______________________________________________

Thank-you, that was the problem exactly!

Changing it to look like this:

const QByteArray envVarValue{qgetenv("envVar")};
const auto var{QString::fromUtf8(envVarValue)};

fixed it.

Thanks again,

John Schneiderman
Senior Software Engineer
GOG.com
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to