~ubuntu-branches/ubuntu/precise/kde4libs/precise-security

« back to all changes in this revision

Viewing changes to kdecore/tests/kcharsetstest.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Jonathan Riddell, Felix Geyer
  • Date: 2012-01-04 13:14:55 UTC
  • mfrom: (1.14.13)
  • Revision ID: package-import@ubuntu.com-20120104131455-24z6nqac1afbdjkn
Tags: 4:4.7.97-0ubuntu1
[ Jonathan Riddell ]
* New upstream RC release

[ Felix Geyer ]
* Update symbols files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    // Do NOT move this code to a QTestLib unit test ;-)
19
19
    QString one = QString::fromUtf8("é");
20
20
    QByteArray one8bit = one.toLocal8Bit();
21
 
    if (qgetenv("LANG").endsWith("UTF-8")) { // krazy:exclude=strings
 
21
    QByteArray lang = qgetenv("LC_ALL");
 
22
    if (lang.isEmpty()) {
 
23
        lang = qgetenv("LANG");
 
24
    }
 
25
    if (lang.endsWith("UTF-8")) { // krazy:exclude=strings
22
26
        kDebug() << one << one8bit;
23
27
        Q_ASSERT(one8bit.length() == 2);
24
28
    }