1 2 3 4 5 6 7 8 9 10 11 12 13
#include <libintl.h> #include <string.h> #include <strings.h> #include <errno.h> char *bind_textdomain_codeset(const char *domainname, const char *codeset) { if (codeset && strcasecmp(codeset, "UTF-8")) { errno = EINVAL; return 0; } return "UTF-8"; }