// SPDX-FileCopyrightText: 2020 Serokell // // SPDX-License-Identifier: MPL-2.0 #include #if !defined(mingw32_HOST_OS) #if defined(HAVE_LIBCHARSET) #include const char* libcharsetEncoding(void) { return locale_charset(); } #endif #if defined(HAVE_LANGINFO_H) #include const char* langinfoEncoding(void) { return nl_langinfo(CODESET); } #endif #endif