Qt 4.8
Classes | Functions
qlocale_unix.cpp File Reference
#include "qlocale_p.h"
#include "qstringbuilder.h"
#include "qdatetime.h"
#include "qstringlist.h"
#include "qvariant.h"

Go to the source code of this file.

Classes

struct  QSystemLocaleData
 

Functions

static QByteArray getSystemLocale ()
 

Function Documentation

◆ getSystemLocale()

static QByteArray getSystemLocale ( )
static

Definition at line 51 of file qlocale_unix.cpp.

Referenced by QSystemLocaleData::updateLocale().

52 {
53 #if defined(Q_OS_QNX)
54  static char buff[257];
55 
56  memset(buff, 0, sizeof buff);
57 
58  if (confstr(_CS_LOCALE, buff, 257) > 0)
59  return buff;
60  else
61  return qgetenv("LC_ALL");
62 #else
63  return qgetenv("LC_ALL");
64 #endif
65 }
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)