#define _GNU_SOURCE
#include <netdb.h>
+#include "locale_impl.h"
static const char msgs[] =
"Host not found\0"
{
const char *s;
for (s=msgs, ecode--; ecode && *s; ecode--, s++) for (; *s; s++);
- return *s ? s : s+1;
+ if (!*s) s++;
+ return LCTRANS_CUR(s);
}