public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Problem with UNICODE and man pages encoding
@ 2007-02-23 13:07 paulie.x
  2007-02-23 13:34 ` Hans-Werner Hilse
  0 siblings, 1 reply; 12+ messages in thread
From: paulie.x @ 2007-02-23 13:07 UTC (permalink / raw
  To: gentoo-user

Hans-Werner Hilse napsal(a):
> Hi,
>
> On Fri, 23 Feb 2007 05:27:08 -0600 "Boyd Stephen Smith Jr."
> <bss03@volumehost.net> wrote:
>
>> On Thursday 22 February 2007 23:14, paulie.x wrote:
>>> Boyd Stephen Smith Jr. napsal(a):
>>>> On Thursday 22 February 2007, jcd <jcd@seznam.cz> wrote
>>>>
>>>> about '[gentoo-user] Problem with UNICODE and man pages encoding':
>>>>> Hi.
>>>>> I converted my system to UNICODE with assistance
>>>>> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8.
>>>>> But my man-pages are
>>>>> still displayed with bad characters ('á' is 'á') in console
>>>>> even in X terminal emulator.
>>>>>
>>>>> I tried to changed line in
>>>>> /etc/make.conf:
>>>>> Code:
>>>>> NROFF           /usr/bin/nroff -Tascii -c -mandoc
>> I don't have a line that looks anything like that in my make.conf
>
> No, the poster most definitely meant to write man.conf instead of
> make.conf.
>
> That would be correct.
>
> But his output looks like he already gets UTF-8 out of "man". He just
> borked his terminal settings or is running a non-Unicode terminal.
> Otherwise, there would just be one glyph for an unrecognized code
> sequence, plus probably the following char being eaten.
>
> So to the OP: Configure your terminal accordingly (for console: set
> consoletrans and -font correctly) or if you didn't yet, install a
> unicode-aware terminal program.
>
> -hwh

It is not true because I'm already using UNICODE in terminal. Just man pages are still displayed worst. When I uncompressed one local man page and viewed raw text (cat man.1 | less) in my terminal, I can see correct UNICODE characters (among format sequences). Also in http://www.gentoo.org/doc/en/utf-8.xml is defined approach how to update man.conf to work with UNICODE (changing "NROFF /usr/bin/nroff -Tascii -c -mandoc" to "NROFF /usr/bin/nroff -c -mandoc"). I already tried it.
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [gentoo-user] Problem with UNICODE and man pages encoding
@ 2007-02-23 11:43 paulie.x
  0 siblings, 0 replies; 12+ messages in thread
From: paulie.x @ 2007-02-23 11:43 UTC (permalink / raw
  To: gentoo-user

Boyd Stephen Smith Jr. napsal(a):
> On Thursday 22 February 2007 23:14, paulie.x wrote:
>> Boyd Stephen Smith Jr. napsal(a):
>>> On Thursday 22 February 2007, jcd <jcd@seznam.cz> wrote
>>>
>>> about '[gentoo-user] Problem with UNICODE and man pages encoding':
>>>> Hi.
>>>> I converted my system to UNICODE with assistance
>>>> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8.
>>>> But my man-pages are
>>>> still displayed with bad characters ('á' is 'á') in console even in X
>>>> terminal emulator.
>>>>
>>>> I tried to changed line in
>>>> /etc/make.conf:
>>>> Code:
>>>> NROFF           /usr/bin/nroff -Tascii -c -mandoc
>
> I don't have a line that looks anything like that in my make.conf
>
>>>> to
>>>> Code:
>>>> NROFF           /usr/bin/nroff -Tutf8 -c -mandoc
>>> 1) Those lines aren't the correct format for make.conf.  Normally, 
> you'd
>>> use something like:
>>> VARIABLE="value"
>>>
>>> 2) NROFF isn't a valid make.conf variable.  See the make.conf(5)
> manpage
>>> for a list of valid make.conf variables.
>>>
>>> I'm not sure exactly what you are trying to do, but I think it's more
>>> likely controlled by an nroff USE flag or configuration file than a
>>> portage configuration files.
>> OK. If it isn't correct format and NROFF isn't valid variable, then it is
>> bug in gentoo package, because I just changed the parameters to
>> /usr/bin/nroff. I also didn't find any suitale USE flag.
>
> It's possible that you need to add this variable to some file
> under /etc/env.d, or perhaps add a global alias and/or function
> in /etc/profile.d, or maybe an nroff or man or other package configuration
> file.  I suppose make.conf could be used, but I'm fairly certain those
> variables aren't guaranteed to filter down to any subprocesses -- they are
> only meant to affect the behavior of ebuilds.
>
> In /etc/env.d or /etc/make.conf you'll use the VARIABLE="value" syntax.
> In /etc/profile.d anything bash can handle will work.  For another
> configuration file, it might be totally different.
>
> In any case, most packages don't provide a generic way to modify their
> default
> parameters (via environment variables or anything else), and I would guess
> that setting the NROFF variable to some value wouldn't actually change the
> way the nroff binary worked (but it could!).
>
> It could very well be a bug but, you are going to have to be more specific
> about the behavior you are trying to achieve with that "make.conf" setting.
> Feel free to file at b.g.o. if you think this is a failing of the package
> or
> the portage system.
>

I just confused man.conf with make.conf... I meant man.conf in all messages. Sorry
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [gentoo-user] Problem with UNICODE and man pages encoding
@ 2007-02-23  5:14 paulie.x
  2007-02-23 11:27 ` Boyd Stephen Smith Jr.
  0 siblings, 1 reply; 12+ messages in thread
From: paulie.x @ 2007-02-23  5:14 UTC (permalink / raw
  To: gentoo-user

Boyd Stephen Smith Jr. napsal(a):
> On Thursday 22 February 2007, jcd <jcd@seznam.cz> wrote
> about '[gentoo-user] Problem with UNICODE and man pages encoding':
>> Hi.
>> I converted my system to UNICODE with assistance
>> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8.
>> But my man-pages are
>> still displayed with bad characters ('á' is 'á') in console even in X
>> terminal emulator.
>
>> I tried to changed line in
>> /etc/make.conf:
>> Code:
>> NROFF           /usr/bin/nroff -Tascii -c -mandoc
>>
>> to
>> Code:
>> NROFF           /usr/bin/nroff -Tutf8 -c -mandoc
>>
>> and also according to comments to
>> Code:
>> NROFF           /usr/bin/nroff -c -mandoc.
>
> 1) Those lines aren't the correct format for make.conf.  Normally, you'd
> use something like:
> VARIABLE="value"
>
> 2) NROFF isn't a valid make.conf variable.  See the make.conf(5) manpage
> for a list of valid make.conf variables.
>
> I'm not sure exactly what you are trying to do, but I think it's more
> likely controlled by an nroff USE flag or configuration file than a
> portage configuration files.
>

OK. If it isn't correct format and NROFF isn't valid variable, then it is bug in gentoo package, because I just changed the parameters to /usr/bin/nroff. I also didn't find any suitale USE flag.
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-user] Problem with UNICODE and man pages encoding
@ 2007-02-22 19:38 jcd
  2007-02-22 22:50 ` Boyd Stephen Smith Jr.
  2007-02-23  8:44 ` Bo Ørsted Andresen
  0 siblings, 2 replies; 12+ messages in thread
From: jcd @ 2007-02-22 19:38 UTC (permalink / raw
  To: gentoo-user

Hi.
I converted my system to UNICODE with assistance 
http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8. I 
re-encoded several files and several filenames. But my man-pages are 
still displayed with bad characters ('á' is 'á') in console even in X 
terminal emulator. I unmerged package (with local man pages 
'app-i18n/man-pages-cs'), deleted distfile and again merged but it 
remained same. So I had uncompressed one local man page and looked into 
raw text and there it is all right. I tried to changed line in 
/etc/make.conf:
Code:
NROFF           /usr/bin/nroff -Tascii -c -mandoc

to
Code:
NROFF           /usr/bin/nroff -Tutf8 -c -mandoc

and also according to comments to
Code:
NROFF           /usr/bin/nroff -c -mandoc.

In both cases result was same. Also I have correct fonts for my language 
and unicode use flag defined.
-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2007-02-24  9:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-23 13:07 [gentoo-user] Problem with UNICODE and man pages encoding paulie.x
2007-02-23 13:34 ` Hans-Werner Hilse
2007-02-23 17:40   ` jcd
2007-02-24  9:08   ` jcd
2007-02-24  9:11   ` paulie.x
  -- strict thread matches above, loose matches on Subject: below --
2007-02-23 11:43 paulie.x
2007-02-23  5:14 paulie.x
2007-02-23 11:27 ` Boyd Stephen Smith Jr.
2007-02-23 12:27   ` Hans-Werner Hilse
2007-02-22 19:38 jcd
2007-02-22 22:50 ` Boyd Stephen Smith Jr.
2007-02-23  8:44 ` Bo Ørsted Andresen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox