set locale when checking line length