LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-08-2011, 10:54 AM   #1
wilson47
Member
 
Registered: Jan 2009
Posts: 50

Rep: Reputation: 15
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.

Last edited by wilson47; 12-08-2011 at 11:42 AM.
 
Old 12-10-2011, 04:31 PM   #2
wilson47
Member
 
Registered: Jan 2009
Posts: 50

Original Poster
Rep: Reputation: 15
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.
 
Old 06-26-2014, 07:07 AM   #3
user@123
LQ Newbie
 
Registered: Mar 2014
Posts: 18

Rep: Reputation: Disabled
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.
 
Old 06-26-2014, 08:59 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by user@123 View Post
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Unicode Characters Whatif Programming 6 02-21-2011 05:42 PM
Printing Unicode characters in C Completely Clueless Programming 3 09-05-2009 04:13 PM
how do new unicode characters get implemented j1wu Linux - Software 1 04-18-2009 01:23 AM
unicode/japanese characters in C merc64 Programming 6 03-13-2007 07:00 PM
Unicode characters in Firefox Ephracis Linux - Software 6 10-14-2005 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration