** Changed in: gnome-terminal (Ubuntu)
Importance: Undecided = Low
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/1360419
Title:
Buffer containing russian Unicode
Thank you a lot, Egmont, of course you're 100% right with that. Massive
thanks for helping with fixing in via .bashrc, too.
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu.
Egmont, thanks a lot, man, you're made my day!
Yeah, the problem was there: in gnome-terminal stty -a reports
-iutf8 by default, while on XTerm, UXTerm and LXTerminal it reports
iutf8 by default. Command stty iutf8 getting gnome-teminal back on
right way!
Sadly, I don't know why this situation
All works fine because Egmont Koblinger kindly offered a working
solution.
** Changed in: gnome-terminal (Ubuntu)
Assignee: (unassigned) = Ivan Zouboff (anotherdiskmag)
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to
For those who interested for code solution - here it is:
#include stdio.h
#include stdlib.h //contains system() function
void main()
{
char buffer[1024];
/*executing of command stty iutf in shell before input begins.
this command means assume input characters are UTF-8 encoded.*/
if
Hi Ivan,
The feature of setting iutf8 was implemented in gnome-terminal 10 years
ago and I've been happily using it ever since. There might be a bug of
course, it would be nice to investigate further why it's not set for
you. (At this moment I have no idea how it could be wrong for you.)
Your
If you're using UTF-8 character set, you need to execute stty iutf8, so that
a stty -a reports back iutf8.
For non-UTF-8, the command to be executed is stty -iutf8 and accordingly
stty -a should report -iutf8.
Gnome-terminal sets this according to the initial character set of the
terminal, but