ref: ad78b7323c3d0bbd562730c6e17814cec9c2d68a
dir: /src/libc/locale/setlocale.c/
#include <locale.h>
#include <stddef.h>
#undef setlocale
char *
setlocale(int category, const char *locale)
{
if (category > LC_TIME || category < LC_ALL)
return NULL;
if (!locale ||
locale[0] == '\0' ||
locale[0] == 'C' && locale[1] == '\0') {
return "C";
}
return NULL;
}