Can't directly change between 8-bit encodings
Choose ISO-8859-1 in gnome-terminal. echo -e '\xFF'
prints ÿ
.
Now choose ISO-8859-2. echo -e '\xFF'
still prints ÿ
, although should print ˙
.
You have to switch back to UTF-8 and then to the new 8-bit charset for the proper result.
It's caused by an early bail out in set_encoding()
:
if (syntax == data_syntax())
return true;
whereas syntax
is the same for all the 8-bit ones.
Just removing this fixes the problem. Or @chpe do you want to come up with a more fine-grained check here?