Re: [Groff] man file character encoding.

2013-09-27 Thread Federico Lucifredi
> On Thu, Sep 26, 2013 at 05:55:52PM -0400, Federico Lucifredi wrote: >> On Sep 26, 2013, at 4:32 AM, Colin Watson wrote: >>> Or use man-db instead, which is much smarter about character encodings >>> and handles your situation out of the box with no configuration >>> required; I just tested it t

Re: [Groff] man file character encoding.

2013-09-27 Thread Erwin Waterlander
Op 27-9-2013 11:30, Colin Watson schreef: On Thu, Sep 26, 2013 at 09:58:04PM +0200, Erwin Waterlander wrote: I'm curious to know how man-db determines the encoding of the man page. I cannot find that information. Would you like to explain how man-db does the encoding detecion? Certainly. man-d

Re: [Groff] man file character encoding.

2013-09-27 Thread Colin Watson
On Thu, Sep 26, 2013 at 09:58:04PM +0200, Erwin Waterlander wrote: > I'm curious to know how man-db determines the encoding of the man > page. I cannot find that information. Would you like to explain how > man-db does the encoding detecion? Certainly. man-db contains a table of the typical legac

Re: [Groff] man file character encoding.

2013-09-27 Thread Colin Watson
On Thu, Sep 26, 2013 at 05:55:52PM -0400, Federico Lucifredi wrote: > On Sep 26, 2013, at 4:32 AM, Colin Watson wrote: > > Or use man-db instead, which is much smarter about character encodings > > and handles your situation out of the box with no configuration > > required; I just tested it to co

Re: [Groff] man file character encoding.

2013-09-26 Thread Federico Lucifredi
On Sep 26, 2013, at 4:32 AM, Colin Watson wrote: >> Assuming that the problem is caused by `-p', a possible solution is to >> not use this man option or environment variable and add option `-t' to >> nroff in `/etc/man.conf'. > > Or use man-db instead, which is much smarter about character enco

Re: [Groff] man file character encoding.

2013-09-26 Thread Federico Lucifredi
I will look at this during the weekend and get back to you. It should not be difficult with Werner's comments. When you first raised this, you were ahead of the curve. Fixing it then was harder than it is today... Time to get it done. Best-F Sent from my iPhone > On Sep 26, 2013, at 3:43 PM,

Re: [Groff] man file character encoding.

2013-09-26 Thread Federico Lucifredi
Sorry guys, traveling till Sunday. Will comment then. Best-F Sent from my iPhone > On Sep 26, 2013, at 3:43 PM, Werner LEMBERG wrote: > > >> My conclusion is that the coding tag in the man page is not working, >> even when you disable all preprocessors and the coding tag gets to >> the secon

Re: [Groff] man file character encoding.

2013-09-26 Thread Erwin Waterlander
Colin Watson schreef, Op 26-9-2013 10:32: On Thu, Sep 26, 2013 at 06:50:38AM +0200, Werner LEMBERG wrote: Hello Erwin! How can this be fixed? Assuming that the problem is caused by `-p', a possible solution is to not use this man option or environment variable and add option `-t' to nroff in `

Re: [Groff] man file character encoding.

2013-09-26 Thread Werner LEMBERG
> My conclusion is that the coding tag in the man page is not working, > even when you disable all preprocessors and the coding tag gets to > the second line. Disabling all preprocessors is probably not what > you want. The only way out, with the use of Federico's man and > preconv, is to convert

Re: [Groff] man file character encoding.

2013-09-26 Thread Erwin Waterlander
Werner LEMBERG schreef, Op 26-9-2013 6:50: > > Hello Erwin! Hi, > > Please send such questions to the groff mailing list (which I've now > CCed). Thanks. > >> This was my problem: >> >> I set a French locale fr_FR.UTF-8, and have a Latin-1 formatted man >> page (vim.1). The problem was that

Re: [Groff] man file character encoding.

2013-09-26 Thread Colin Watson
On Thu, Sep 26, 2013 at 06:50:38AM +0200, Werner LEMBERG wrote: > Hello Erwin! > > How can this be fixed? > > Assuming that the problem is caused by `-p', a possible solution is to > not use this man option or environment variable and add option `-t' to > nroff in `/etc/man.conf'. Or use man-db i

Re: [Groff] man file character encoding.

2013-09-25 Thread Werner LEMBERG
Hello Erwin! Please send such questions to the groff mailing list (which I've now CCed). > It is now three years later, and I'm still having trouble with the > coding tag (see below). Do you remember? Mhmm, vaguely :-) > This was my problem: > > I set a French locale fr_FR.UTF-8, and have a