From: amores p. <lif...@ho...> - 2005-11-14 15:55:18
|
>From: adah >To: mingw-users >Subject: Re: [Mingw-users] Re: Groff MingwPORT >Date: Fri, 11 Nov 2005 16:40:45 +0800 > >amores perros wrote: > > >>I'd been led to believe, by comments in the `man' sources, that > >>-Tlatin1 would generally give a better interpretation of manpages > >>than -Tascii. Having tried -Tascii, with a selection of groff's > > > > Perhaps you're thinking of using -Tlatin1 in a terminal window > > which is using ISO-8859-1 (or ISO-8859-15). But, on Windows, > > that won't happen, of course. > > > > It seems unclear to me, at best, why you could possibly > > want -Tlatin1 if the console is using CP437 (in a cursory > > look, I see not one single matchup between ISO-8859-1 > > and CP-437 -- above 0x9f of course), and as for CP936, > > well, that's a DBCS page, so its even worse? > > > > However, what does surprise me, is that CP852 doesn't > > even seem to match up at all to ISO-8859-1, in my > > cursory glance. In ISO-8859-1, the capital accented > > vowels are essentially C0 thru DD, and then of > > course corresponding lowercase ones at E0 thru FD. > > > > But I don't see any of these match against CP852, > > which seems to have them in 80 thru AF. > > > > Of course, there is a LOT of correspondance > > between ISO-8859-1 and CP1252, but I don't > > know that it is even possible to have CP1252 in > > a Windows console? > >It is possible. You need simply `chcp 1252'. > >However, I believe most Western people will have default code page 437 >or 852 in the console, and people in other areas will have the local >code page in the console. Also, I verified that `groff -Tlatin1 ... >groff_char.7' does not work well with a code page other than 1252. So >`-Tascii' should be preferred by most people. > >Best regards, > >Yongwei > I just verified that "chcp 1252" does work correctly. Before I'd thought it didn't work, because I had tested with the default raster fonts, which do not correctly display characters. I switched to Lucida Console font this time, and then I can see the results of "chcp 1252". Thanks. Cordially, Perry |