options/posix: implement nl_langinfo for MON_*
@@ -22,6 +22,22 @@ char *nl_langinfo(nl_item item) {
case ABMON_12: return const_cast<char *>("Dec");
}
__builtin_unreachable();
+ } else if(item >= MON_1 && item <= MON_12) {
+ switch(item) {
+ case MON_1: return const_cast<char *>("January");
+ case MON_2: return const_cast<char *>("Feburary");
+ case MON_3: return const_cast<char *>("March");
+ case MON_4: return const_cast<char *>("April");
+ case MON_5: return const_cast<char *>("May");
+ case MON_6: return const_cast<char *>("June");
+ case MON_7: return const_cast<char *>("July");
+ case MON_8: return const_cast<char *>("August");
+ case MON_9: return const_cast<char *>("September");
+ case MON_10: return const_cast<char *>("October");
+ case MON_11: return const_cast<char *>("November");
+ case MON_12: return const_cast<char *>("December");
+ }
+ __builtin_unreachable();
} else if(item == AM_STR) {
return const_cast<char *>("AM");
} else if(item == PM_STR) {
