Fix compile on OpenBSD

This commit is contained in:
Jonas Kvinge 2019-08-26 01:37:22 +02:00
parent 1fbb1b1524
commit 7fe1f4de93
1 changed files with 2 additions and 0 deletions

View File

@ -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();