LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-16-2007, 12:11 PM   #1
echowarpt
LQ Newbie
 
Registered: Sep 2005
Posts: 11

Rep: Reputation: 0
single quotes represented by garbage chars in perldoc


Hi guys,

All my single quotes in perldoc (pod) documentation are represented by garbage characters. Double quotes are fine.
This issue does not appear in man pages or anywhere else I've seen.
Unicode is working fine AFAIK.
Same result in xterm,aterm,eterm,konsole and gnome-terminal.

Converting from pod to text with pod2text works fine (i.e. single quotes are correct).

[Edit: the hyphen character '-' exhibits this behavior as well -- but only sometimes]

the only thing i can think of is smart quotes and the long hyphen, however i looked at the source of the pod files and this doesn't seem to be the case, any ideas?

[Edit: the structural format seems to be messed up too -- but works fine with perldoc -t (plaintext) or changing $TERM to 'dumb') -- any pointers to docs that might help would be appreciated as well]

thanks!

Last edited by echowarpt; 02-16-2007 at 03:54 PM.
 
Old 02-17-2007, 05:07 AM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Improperly locales setting, non-unicode chars in manpages ?

I would try to invoke documentation with basic locales:
Code:
LANG=C LC_ALL=C perldoc <docname>
 
Old 02-17-2007, 12:44 PM   #3
echowarpt
LQ Newbie
 
Registered: Sep 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Smile

sweet! that completely fixed it.
I had all the locale env vars set to en_US.UTF-8 so I figured everything was fine there...guess i should have checked closer -- as I found that if I change LC_ALL=en_US everything looks fine as well. so must be a unicode issue.
 
Old 05-26-2007, 11:03 AM   #4
chadwick
Member
 
Registered: Apr 2005
Location: At the 100th Meridian where the great plains begin
Distribution: Debian Testing on T60 laptop
Posts: 105

Rep: Reputation: 17
I'm not using Slackware. I'm actually using Debian but this thread seems relevant to my problem so I'm posting it here. I'm having the same problem with garbage characters, except as far as I can tell it's only in aterm and not all the time. I come across it when I use man. If I use man with xterm though there's no problem. Examples of what happens:

- Hyphen at the end of a line (to continue a word to the next line) is replaced by garbage.
- This quote: ´ is shown but is preceded by upper case A with a cirumflex accent on top of it.
- This quote: ‘ is not shown but is replaced by lower case a with a circumflex accent on top of it, and is followed by two square boxes.

If I change the LANG environment variable to C, then there's no problem since the characters are replaced by others which to the human eye are equivalent. But what if there's something such as: é ? Then there's no equivalent to replace it with and you still get garbage.

Last edited by chadwick; 05-26-2007 at 11:04 AM.
 
  


Reply



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
Variables within single quotes are not evaluated? Akhran Linux - Newbie 1 03-10-2006 08:32 PM
Using single quotes vs double quotes in PHP strings vharishankar Programming 6 07-11-2005 11:41 AM
replacing single quotes in file names adenardo Linux - General 2 05-27-2005 11:29 AM
Why IP addresses are represented in 32-bit patterns? velan Debian 1 04-16-2004 02:06 AM
In BASH shell, what is the difference in usage between single and double quotes? davidas Linux - Newbie 2 04-05-2004 03:00 AM

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

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