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 (system("stty iutf8") == -1) printf("system() error!\n");
for (;;) {
fgets(buffer, sizeof buffer-1, stdin);
printf("%s\n", buffer);
}
}
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1360419
Title:
Buffer containing russian Unicode charecters is not cleaning after
pressing Backspace
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1360419/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs