scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <locale.h>
 2
 3#undef setlocale
 4
 5char *
 6setlocale(int category, const char *locale)
 7{
 8	if (category > LC_TIME || category < LC_ALL)
 9		return NULL;
10	if (!locale
11	|| locale[0] == '\0'
12	|| locale[0] == 'C' && locale[1] == '\0') {
13		return "C";
14	}
15	return NULL;
16}