Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

PBM: special characters in UTF8 man pages [SOLVED]

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

PBM: special characters in UTF8 man pages [SOLVED]

  • Quote

Post by VinzC » Wed Sep 11, 2013 6:42 pm

Hi.

I've been having this issue for as long as I've been using Gentoo. My locale is fr_BE.UTF-8 and some man pages written in French are wrongly displayed. It's especially true with UTF-8 man pages, like this one:

Code: Select all

.\" synced with r30135
.\" MPlayer (C) 2000-2010 MPlayer Team
.\" The English man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
.\" Traduction: Guillaume POIRIER < poirierg AT gmail POINT com >,
.
.\" --------------------------------------------------------------------------
.\" Définition des macros
.\" --------------------------------------------------------------------------
.
.\" Définit l'indentation pour les sous-options
.nr SS 4
.\"
.de IPs
.IP "\\$1" \n(SS
..
.\" début du premier niveau des sous-options, se termine par .RE
.de RSs
.RS 10
..
.\" début du 2nd niveau des sous-options
.de RSss
.PD 0
.RS \n(SS+3
..
.\" fin du 2nd niveau des sous-options
.de REss
.RE
.PD 1
..
.
.\" --------------------------------------------------------------------------
.\" Titre
.\" --------------------------------------------------------------------------
.
.TH MPlayer 1 "27 avril 2009" "The MPlayer Project" "Le Lecteur Vidéo"
.
.SH NAME
mplayer  \- Lecteur vidéo
.br
mencoder \- Encodeur vidéo
.
.\" --------------------------------------------------------------------------
.\" Synopsis
.\" --------------------------------------------------------------------------
.
.SH SYNOPSIS
.na
.nh
.B mplayer
[options] [fichier|URL|liste de lecture |\-]
.
.br
.B mplayer
[options] fichier1
[options spécifiques] [fichier2] [options spécifiques]
.
.br
.B mplayer
[options]
{ "groupe de fichiers et d'options" }
[options spécifiques au groupe]
.
.br
.B mplayer
[dvd|dvdnav]://[titre|[titre_de_début]\-titre_de_fin ][/périphérique]
[options]
.
.br
.B mplayer
vcd://piste[/périphérique]
[options]
.
.br
.B mplayer
tv://[chaîne][/identifiant de l'entrée]
[options]
.
.br
.B mplayer
radio://[chaîne|fréquence][/capture]
[options]
.
.br
.B mplayer
pvr://
[options]
.
.br
.B mplayer
dvb://[numero_de_carte@]canal
[options]
.
.br
.B mplayer
mf://[masque de fichier|@liste de fichiers]
[options \-mf] [options]
.
.br
.B mplayer
[cdda|cddb]://piste[\-piste_de_fin][:vitesse][/périphérique]
[options]
.
.br
.B mplayer
cue://fichier[:piste]
[options]
.
.br
.B mplayer
[file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|icyx|noicyx|smb]://
[utilisateur:mot_de_passe@]URL[:port] [options]
...
shows like

Code: Select all

NAME
       mplayer  - Lecteur vidéo
       mencoder - Encodeur vidéo

SYNOPSIS
       mplayer [options] [fichier|URL|liste de lecture |-]
       mplayer [options] fichier1 [options spécifiques] [fichier2] [options
       spécifiques]
       mplayer [options] { "groupe de fichiers et d'options" } [options
       spécifiques au groupe]
       mplayer [dvd|dvdnav]://[titre|[titre_de_début]-titre_de_fin
       ][/périphérique] [options]
       mplayer vcd://piste[/périphérique] [options]
       mplayer tv://[chaîne][/identifiant de l'entrée] [options]
       mplayer radio://[chaîne|fréquence][/capture] [options]
       mplayer pvr:// [options]
       mplayer dvb://[numero_de_carte@]canal [options]
       mplayer mf://[masque de fichier|@liste de fichiers] [options -mf]
       [options]
       mplayer [cdda|cddb]://piste[-piste_de_fin][:vitesse][/périphérique]
       [options]
       mplayer cue://fichier[:piste] [options]
...
The source file is indeed UTF8 but somewhere something between grotty, gtbl, nroff, groff, troff, poff, moff, boff, zoff, floff and wtfoff that shows it as if it were ASCII instead. I've checked Gentoo wiki about man and UTF8 but man.conf already has the described shape.

Can anyone help?

Thanks in advance for any hint/suggestion.
Last edited by VinzC on Fri Jan 03, 2014 11:00 am, edited 3 times in total.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Mon Nov 18, 2013 9:05 am

Hi,

After trying everything, inclusive from that thread, buzz22 solution is working for me: groff-utf8.
"Confirm You are a robot." - the singularity
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Thu Nov 21, 2013 7:43 am

Thanks a lot Dominique_71!

I'll try this and report. (I expect it to work as it did for you.) I'm just surprised groff (since it's the one pointed at) still doesn't process UTF8 properly after all those years.
http://www.haible.de/bruno/packages-groff-utf8.html wrote: Of course this is only a stopgap measure, until groff can process UTF-8 encoded man pages by itself, sometime in the future.
[...]
Last modified: 5 July 2005.
File a bug?

EDIT: Works like a charm! 8) Thanks a bunch again!
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Fri Jan 03, 2014 10:35 am

Unfortunately, it was too good to be true :( . Thought it was solved for good but I just ran into the same issue *sighs* AGAIN *sighs*

I checked the tarball and it installs groff-utf8 in /usr/local/bin, which is fine for me. I then edited /etc/man.conf as follows:

Code: Select all

TROFF           /usr/local/bin/groff-utf8 -Tps -mandoc
NROFF           /usr/bin/nroff -mandoc
JNROFF          /usr/local/bin/groff-utf8 -Tnippon -mandocj
I then ran emerge mplayer again and man pages STILL contain that UTF/ASCII garbage :evil: . Now I'm definitely at my wit's ends. Need help.

EDIT: My bad, forgot to change the NROFF line too:

Code: Select all

TROFF           /usr/local/bin/groff-utf8 -Tps -mandoc
NROFF           /usr/local/bin/groff-utf8 -Tutf8 -mandoc
JNROFF          /usr/local/bin/groff-utf8 -Tnippon -mandocj
Now it works again.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
r90
n00b
n00b
Posts: 19
Joined: Fri Feb 08, 2008 10:44 pm

  • Quote

Post by r90 » Tue Nov 25, 2014 7:18 am

A little late, but the answer is:

Code: Select all

NROFF		/usr/bin/groff -mandoc -Tutf8 -k
Note of using groff, not the nroff stupid script. Seems that without -k groff making something horrible with charset. I don't know what, but I can guess, that groff silently assume that input is latin1.
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Fri Nov 28, 2014 11:48 am

Ah... that explains why it didn't work in the first place. I tried groff-utf8 in despair so, thanks a lot for sharing 8) .
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
Post Reply

6 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic