move locale display before try-clause for non-ttys
move locale display before try-clause for non-ttys

dongguangming/pexpect,quatanium/pexpect,bangi123/pexpect,nodish/pexpect,blink1073/pexpect,dongguangming/pexpect,Wakeupbuddy/pexpect,Depado/pexpect,Wakeupbuddy/pexpect,crdoconnor/pexpect,nodish/pexpect,dongguangming/pexpect,quatanium/pexpect,Depado/pexpect,crdoconnor/pexpect,nodish/pexpect,Wakeupbuddy/pexpect,Wakeupbuddy/pexpect,Depado/pexpect,bangi123/pexpect,crdoconnor/pexpect,bangi123/pexpect,quatanium/pexpect,blink1073/pexpect,blink1073/pexpect,bangi123/pexpect,Depado/pexpect,dongguangming/pexpect