rework langinfo code for ABI compat and for use by time code
[musl] / time / __time_to_tm.c