NetBSD/distrib/utils/libhack/nl_langinfo.c
martin f3b7b31ee0 We (especially libcurses and nvi) use more multibyte character locale
related symbols nowadays. Update libhack to avoid pulling in full grown
multibyte locale support on small install media.
2019-07-28 10:21:18 +00:00

21 lines
369 B
C

/* $NetBSD: nl_langinfo.c,v 1.1 2019/07/28 10:21:18 martin Exp $ */
/*
* Written by Martin Husemann <martin@NetBSD.org>
* Public domain.
*/
#include <langinfo.h>
/*
* Cheap and dirty nl_langinfo() - implements just enough
* for our libcurses in crunched environments.
*/
char *
nl_langinfo(nl_item what)
{
if (what == CODESET)
return "ASCII";
return "";
}