diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 02aba1fa8f..069468b3f8 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1268,7 +1268,7 @@ wxString wxLocale::GetSystemEncodingName() // to Unix98) char *oldLocale = strdup(setlocale(LC_CTYPE, NULL)); setlocale(LC_CTYPE, ""); - char *alang = nl_langinfo(CODESET); + const char *alang = nl_langinfo(CODESET); setlocale(LC_CTYPE, oldLocale); free(oldLocale);