LinuxQuestions.org
Visit Jeremy's Blog.
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 05-27-2017, 03:56 PM   #1
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
`LANG=ja_JP.UTF-8 man man' doesn't work


Code:
$ LANG=ja_JP.UTF-8 man man
/usr/bin/groff: can't find `DESC' file
/usr/bin/groff:fatal error: invalid device `nippon'
It happens on both 14.2 and current. As shown by strace /etc/man.conf is opened and it has these lines:
Code:
JNROFF        /usr/bin/groff -Tnippon -mandocj
JNEQN         /usr/bin/geqn -Tnippon
Removing them does not help because they're probably set to the default value by man.

Some manuals I found mention using -Tnippon with nroff and not groff and in fact nroff -Tnippon works but it doesn't work with -mandocj.

Not a big issue but definitely something is wrong. Can someone reproduce this?
 
Old 05-27-2017, 04:55 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
This is an issue with man shipped in Slackware. This is one of the reasons why in Slint we ship man-db instead.

In the attached pic you can see the same man page displayed in mlterm and xterm. In both case most is used as pager.

PS But maybe you just need to set GROFF_ENCODING to UTF-8?
Attached Thumbnails
Click image for larger version

Name:	man-db.jpg
Views:	81
Size:	281.9 KB
ID:	25130  

Last edited by Didier Spaier; 05-28-2017 at 04:38 AM.
 
Old 05-28-2017, 02:34 AM   #3
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by Didier Spaier View Post
This is an issue with man shipped in Slackware. This is one of the reasons why in Slint we ship man-db instead.
In the attached pic you can see the same man page displayed in mlterm an xterm. In both case most is used as pager.
So it's a known issue, I see. Do theses screenshots come from Slint that you mentioned or from Slackware?
Quote:
Originally Posted by Didier Spaier View Post
PS But maybe you just need to set GROFF_ENCODING to UTF-8?
Still doesn't work:
Code:
$ /GROFF_ENCODING=UTF-8 LANG=ja_JP.UTF-8 man man
/usr/bin/groff: can't find `DESC' file
/usr/bin/groff:fatal error: invalid device `nippon'
$ GROFF_ENCODING=utf-8 LANG=ja_JP.UTF-8 man man
/usr/bin/groff: can't find `DESC' file
/usr/bin/groff:fatal error: invalid device `nippon'
 
Old 05-28-2017, 03:44 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
The screenshots come from Slint. I have named the packages man (not man-db) so that they supersede the man packages shipped in Slackware (so upgradepkg will work in Slackware).

packages 32-bit, packages 64-bit, source.

Last edited by Didier Spaier; 05-28-2017 at 03:47 AM.
 
2 members found this post helpful.
Old 05-28-2017, 05:29 AM   #5
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
After replacing a stock man package with yours displaying Japanese manpages work correctly, Thank you for your help.

As this problem seems to be well known, are there any plans to fix it in upstream?
 
Old 05-28-2017, 05:36 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by average_user View Post
As this problem seems to be well known, are there any plans to fix it in upstream?
Only Patrick J. Volkerding can answer. But this has just been requested by Gazl.

PS And thanks should go to the packager, B. Watson.

Last edited by Didier Spaier; 05-28-2017 at 05:42 AM.
 
1 members found this post helpful.
  


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
man finds it, but man -k or apropos doesn't: why? mcswell Linux - Software 3 02-16-2012 05:16 PM
[SOLVED] Can you tell me why cd doesn't work like the MAN pages say? vagmztp Linux - Newbie 3 12-19-2011 12:45 PM
Pressing 'j' doesn't work reading man pages with xterm, cola Debian 5 12-22-2009 02:57 AM
Man pages as root doesn't work vharishankar Slackware 8 04-04-2006 11:13 AM
"man' doesn't want to work anymore ... why ??? sys7em Slackware 3 02-12-2005 03:58 PM

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

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