LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-16-2006, 10:16 AM   #1
Mehuge
LQ Newbie
 
Registered: Dec 2005
Posts: 22

Rep: Reputation: 15
How do I disable unwanted character mappings?


When I view a man page, or when I vi the output of a man page, or when looking at errors from gcc, I get strange character sequences replacing the ' character.

If from a telnet session I do "man termcap >/tmp/out" and look at an octal dump of /tmp/out I see the sequence

342 200 231

inplace of the ' character, for example (extracts from od -c /tmp/out):

P r o g r a m m e r 342 200 231 s


s e p a r a t e d b y 342 200 231 | 342 200 231

The problem happens when using ssh also, so its not limited to telnet.

How can I disable this conversion behaviour?
 
Old 11-16-2006, 10:31 AM   #2
Mehuge
LQ Newbie
 
Registered: Dec 2005
Posts: 22

Original Poster
Rep: Reputation: 15
I seem to have found the cause.

LANG=en_UK.UTF-8 man termcap
LANG=en_UK.iso8859 man termcap
LANG=en_US.iso8859 man termcap

All display '|' correctly, however

LANG=en_US.UTF-8 man termcap

Displays '|' as \0342\0200\0231|\0342\0200\0231

Why would en_US.UTF-8 locale make it do that?

Last edited by Mehuge; 11-16-2006 at 10:44 AM.
 
  


Reply

Tags
character, mapping, quote


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
key mappings michaeljh2000 Slackware 11 12-25-2006 12:57 PM
about wide character and multiple byte character George2 Programming 5 05-23-2006 02:03 AM
Keyboard Mappings doralsoral Linux - Hardware 2 03-20-2005 11:29 AM
Invalid keyboard mappings iskrem Linux - Software 1 02-27-2005 03:44 PM
extra key mappings lechuck Linux - Newbie 6 11-04-2003 03:31 PM


All times are GMT -5. The time now is 01:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration