Red Hat Bugzilla – Bug 214531
Yelp uses incorrect charset conversion for non-english manpages
Last modified: 2007-11-30 17:11:48 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Description of problem:
Yelp doesn't display non-english manpages. It tries to, but displays only ugly characters.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install man-pages-ru (should work with any other localized non-latin man pages package)
2. Run yelp in corresponding locale: LANG=ru_RU.UTF-8 yelp
3. Type man:malloc in "Поиск" (search) input field.
Very ugly manpage is displayed. See attached screenshot for details.
Normal localized manpage.
Looking at the output, it's quite easy to guess what happens. The manpage, /usr/share/man/ru/man3/malloc.3.gz is UTF-8-encoded. When parsing it, yelp gets correct utf-8 input. However, for some reason it assumes that input from manpage filter is in iso8859-1 (very wrong..). So it converts it from iso8859-1 to utf-8 (output charset) and that's where that garbage comes from.
To test this, try
gunzip < /usr/share/man/ru/man3/malloc.3.gz | man2html - | iconv -fiso8859-1 -tutf-8
in terminal and the output is exactly the same as what yelp is trying to display. Without iconv, output is correct.
Created attachment 140611 [details]
Example garbage output from man:malloc
Is this problem still present in Fedora 8 Test 2 or later?
I don't think I'll be able to test it right now. Can anyone who has F8T2
installed check this? There are really no requirements aside from having yelp
and man-pages-ru installed..
Moving this upstream. Please see  for further updates.