xref: /netbsd-src/distrib/utils/libhack/nl_langinfo.c (revision f3b7b31ee0c96d9dfb2e91690dd6e1aa6d418896)
1 /*	$NetBSD: nl_langinfo.c,v 1.1 2019/07/28 10:21:18 martin Exp $	*/
2 
3 /*
4  * Written by Martin Husemann <martin@NetBSD.org>
5  * Public domain.
6  */
7 
8 #include <langinfo.h>
9 
10 /*
11  * Cheap and dirty nl_langinfo() - implements just enough
12  * for our libcurses in crunched environments.
13  */
14 char *
nl_langinfo(nl_item what)15 nl_langinfo(nl_item what)
16 {
17 	if (what == CODESET)
18 		return "ASCII";
19 	return "";
20 }
21