LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Backspace problem in console with unicode characters (https://www.linuxquestions.org/questions/linux-general-1/backspace-problem-in-console-with-unicode-characters-917759/)

wilson47 12-08-2011 10:54 AM

Backspace problem in console with unicode characters
 
So I am trying to get unicode to work on my console in Slackware 13.37. I load a unicode font using setfont, and set my keyboard to a German layout using loadkeys. The following errors occur:

1. If I enter a character into the command prompt which is not ASCII, like ö,ä,ß, if I try to delete the character, the character does not display on my screen, but it is processed in the command as if it were there.

2. If I enter a character into the command prompt which is not ASCII, and then try to remove everything entered using the backspace key, I wind up deleting part of my shell prompt. If the number of non-ascii characters entered is N, then backspace will seem to delete N extra characters.

So these problems seem related, and I have no idea what to do. If anybody could provide any help, I would greatly appreciate it!

Edit: I should also probably mention that I am using bash.

wilson47 12-10-2011 04:31 PM

Awesome. Super easy fix! All you have to do is edit the file /etc/profile.d/lang.sh to set the LANG variable to something that supports UTF-8... For example, comment out the line that reads:
Code:

export LANG=en_US
or something similar, and add/uncomment the line that reads:
Code:

export LANG=en_US.utf8
or similar.

user@123 06-26-2014 07:07 AM

Backspace deletes prompt after entering non-ASCII characters
 
I am also facing same problem, but suggested solution did not work for mi. I am using fedora13.

TB0ne 06-26-2014 08:59 AM

Quote:

Originally Posted by user@123 (Post 5194314)
I am also facing same problem, but suggested solution did not work for mi. I am using fedora13.

Please read the LQ Rules. You have re-opened a thread that had been closed for THREE YEARS. Necroposting is frowned upon, especially if nothing new is added to the original thread/question/solution. Open your own thread for your own question.

And as you've been told in your other threads, you should REALLY not be using Fedora 13..it's ancient and unsupported, the latest is 20. Please update. And your question here seems to be related to another thread you have opened:
http://www.linuxquestions.org/questi...ng-4175504200/


All times are GMT -5. The time now is 03:34 PM.