LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 09: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, 09: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 09:44 AM.
 
  


Reply

Tags
character, mapping, quote



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 11:57 AM
about wide character and multiple byte character George2 Programming 5 05-23-2006 01:03 AM
Keyboard Mappings doralsoral Linux - Hardware 2 03-20-2005 10:29 AM
Invalid keyboard mappings iskrem Linux - Software 1 02-27-2005 02:44 PM
extra key mappings lechuck Linux - Newbie 6 11-04-2003 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:29 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