I have an Ubuntu 10.10 Server box with a Digital VT220 connected over a serial line. (That's a real VT220, not a virtual one. An actual beige CRT thing.)

It works great apart from the fact that Ubuntu is sending it UTF-8, so occasionally you get a weird character in place of a normal one, because the VT220 doesn't support UTF-8.

Can I configure Ubuntu to use ASCII or ISO 8859-1 only on the serial line? I don't know if it's a getty option or otherwise.

link|improve this question
feedback

1 Answer

Try adding something like this to /etc/profile

TTY=$(tty)
if [ "$TTY%[0-9]}" == '/dev/TTY' ]; then
    LANG=%{LANG%.UTF-8}.iso88591
fi

You may need to generate the locale without UTF-8.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.