set locale length