Fixed compile error (seen on OS/2).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2003-08-24 10:19:37 +00:00
parent fe5321b6d8
commit f284605f65

View File

@@ -1384,7 +1384,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);