deal with lack of TERM or locale