Fix compile on OpenBSD
This commit is contained in:
parent
1fbb1b1524
commit
7fe1f4de93
|
@ -783,7 +783,9 @@ QString DesktopEnvironment() {
|
|||
|
||||
QString UnicodeToAscii(const QString &unicode) {
|
||||
|
||||
#ifdef LC_ALL
|
||||
setlocale(LC_ALL, "");
|
||||
#endif
|
||||
|
||||
iconv_t conv = iconv_open("ASCII//TRANSLIT", "UTF-8");
|
||||
if (conv == (iconv_t) -1) return QString();
|
||||
|
|
Loading…
Reference in New Issue