Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird characters in man pages #33

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 4 comments
Open

Weird characters in man pages #33

GoogleCodeExporter opened this issue Apr 15, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Please read the FAQ and check existing issues before creating a new issue.

What steps will reproduce the problem?
1. man ls
2.
3.

What is the expected result?  What happens instead?

I would expect to see readable man pages.  Instead, I see weird
characters where a '-' (dash) is expected.

PutTTYcyg version: 20091228
Cygwin version: 1.7.1
Windows version: XP SP3

If you are experiencing performance issues, do you have a multi-core system
or multiple CPUs?

Do you have any firewall software installed?

Please attach your PuTTY configuration.  Use this Windows command to create
putty.reg:
REG EXPORT HKEY_CURRENT_USER\Software\SimonTatham\PuTTY putty.reg

Please provide any additional information below.

I know that Cygwin 1.7 now uses UTF-8 so I set the character set
translation in Puttycyg to UTF-8 for my Cygwin session.  Prior to
this, dashes in man pages would show up as 'a' with two dots.  Now
dashes in man pages show up has a fat half-height vertical bar.
I don't know if this is a Putty issue or a Cygwin issue.  Since
this version of Puttycyg is supposed to work with Cygwin 1.7, I 
thought that I would ask here first.

Original issue reported on code.google.com by wes....@gmail.com on 6 Jan 2010 at 11:43

@GoogleCodeExporter
Copy link
Author

You indeed need to set PuTTY's character set translation to UTF-8  if you 
intend to 
use LANG=?.UTF-8 in Cygwin (the default seems to be LANG=C.UTF-8).  However, 
you must also then use a font which has a good selection of Unicode code 
points, 
which "Fixedsys" does not.

I will look into making UTF-8 the default setting in PuTTYcyg.  PuTTY's default 
font is 
"Courier New" which supports most Unicode code points, although not all those 
in 
the ls(1) man page (it's lacking a hyphen U+2010).  "DejaVu Sans Mono" seems to 
display everything correctly.

Original comment by medgar123 on 7 Jan 2010 at 6:54

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Note - For those, like me, who are not clear how to add a font to PuTTy. Putty
requires a monospace font, and will list all the monospace fonts on your system 
as
options. Most fonts are variable space, which is why the putty list is so 
short. The
'DejaVu Sans Mono' is a monospace, so installing it on your system in the usual 
way
(Download the ttf file; open Windows\Fonts in Windows Explorer; File -> Install 
new
font; point to the ttf file) will make that font show up in the list of PuTTy 
fonts.
Any other monospace font you install will show up the same way.

I was able to find the DejaVu Sans Monospace font at 
http://cooltext.com/Download-Font-DejaVu+Sans+Mono

Original comment by WCros...@gmail.com on 15 Jan 2010 at 3:21

@GoogleCodeExporter
Copy link
Author

Issue 36 has been merged into this issue.

Original comment by medgar123 on 15 Mar 2010 at 3:54

@GoogleCodeExporter
Copy link
Author

I have had this problem as well, I simply went to the Window > Translation page 
in
the left hand window and changed the setting "Received data assumed to be in 
which
character set:" to UTF-8. It was originally at ISO8859.

Original comment by purplepe...@gmail.com on 20 Apr 2010 at 10:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant