xref: /netbsd-src/distrib/utils/libhack/nl_langinfo.c (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
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 *
15 nl_langinfo(nl_item what)
16 {
17 	if (what == CODESET)
18 		return "ASCII";
19 	return "";
20 }
21