fix locale.c under -DPERL_GLOBAL_STRUCT