public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* How does Cygwin handle non-Latin1 man pages? (move to UTF-8?)
@ 2013-09-24 20:29 Erwin Waterlander
  2013-09-25 19:59 ` Erwin Waterlander
  0 siblings, 1 reply; 21+ messages in thread
From: Erwin Waterlander @ 2013-09-24 20:29 UTC (permalink / raw)
  To: cygwin

Hi,

As far as I see it, on Cygwin it is assumed that man pages are encoded 
in Latin-1 (ISO-8859-1).
For instance the man pages of vim.

/usr/share/man/fr/vim.1.gz is encoded in Latin-1.

$ export LANG=fr_FR.UTF-8
$ man vim

This will show the French man page correctly. Latin-1 is converted to UTF-8.

For the Russian translation of the vim manual I see two files:
/usr/share/man/ru.UTF-8/man1/vim.1.gz
/usr/share/man/ru.KOI8-R/man1/vim.1.gz


When I type
$ export LANG=ru_RU.UTF-8
$ man vim

I get the English man page, instead of the Russian man page.
I think because there is no /usr/share/man/ru/man1/vim.1.gz present.

When I type

$ export LANG=ru_RU.UTF-8
$ export LANGUAGE=ru.UTF-8
$ man vim

The Russian man page is displayed, but all Russian characters are 
wrongly displayed.
I think because it is assumed the man page is in Latin-1.

To get a correct display of the Russian man page I need to change 
/etc/man.config
I change the line with NROFF to:
NROFF         /usr/bin/preconv | /usr/bin/nroff -c -mandoc 2>/dev/null

Now the Russian man page displays correctly, but now all the Latin-1 
pages display wrongly.

So I undo my change in /etc/man.conf


On Linux the trend is to convert all man pages to UTF-8 encoding.
Will Cygwin follow this trend?

regards,

-- 
Erwin Waterlander
http://waterlan.home.xs4all.nl/


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2014-04-30 16:49 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-24 20:29 How does Cygwin handle non-Latin1 man pages? (move to UTF-8?) Erwin Waterlander
2013-09-25 19:59 ` Erwin Waterlander
2013-09-25 20:10   ` Erwin Waterlander
2014-03-14 12:58     ` Cygwin needs a man-db port (was: How does Cygwin handle non-Latin1 man pages? (move to UTF-8?)) Erwin Waterlander
2014-03-14 13:52       ` Cygwin needs a man-db port Chris J. Breisch
2014-03-14 14:38         ` Erwin Waterlander
2014-03-14 15:52           ` Chris J. Breisch
2014-03-14 16:29             ` Erwin Waterlander
2014-03-14 17:05             ` Corinna Vinschen
2014-03-14 19:22               ` Chris J. Breisch
2014-03-16 11:43               ` Chris J. Breisch
2014-04-17 18:32       ` Chris J. Breisch
2014-04-20  6:41         ` Erwin Waterlander
2014-04-21 20:41         ` waterlan
2014-04-22  3:04           ` KIMURA Masaru
2014-04-23 15:18         ` Chris J. Breisch
2014-04-24 18:30           ` waterlan
2014-04-25  0:47             ` Chris J. Breisch
2014-04-24 19:43         ` waterlan
2014-04-24 22:10           ` waterlan
2014-04-30 16:49             ` waterlan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).