Issue 154 - Localized output of mtn manpage leads to corrputed characters (monotone)

[email protected]
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <4ee226384893520397ea3e30dad192c6@localhost>
Hello,

A new issue has been created and assigned
to you:

154 - Localized output of mtn manpage leads to corrputed characters
Project: monotone
Status: New
Reported by: Thomas Keller
Labels:
 Type:Incorrect Behavior
 Priority:Medium

Description:

Steps to reproduce the problem:
-------------------------------

Call `mtn manpage` or `mtn manpage | nroff -man` in a non-UTF8 and non-english locale.

Expected result:
----------------

Proper display of characters outside the ASCII range.


Actual results:
---------------

Single UTF8 bytes.


Output of `mtn version --full`:
-------------------------------

0.99.1


Note that this doesn't work either:

   `mtn manpage | nroff -man | less`
   `mtn manpage | nroff -Tutf8 -man | less`
   `LANG=de_DE.ISO-8859-1 mtn manpage`

but this does for some weird reason:

   `LANG=de_DE.ISO-8859-1 mtn manpage | nroff -man | less`


I think the problem is that nroff (groff actually) doesn't really notice that it should run in utf8 mode (this should be the default nowadays) and that it refuses to do so even if we tell him with -Tutf8 to do so explicitely.

--
Issue: https://code.monotone.ca/p/monotone/issues/154/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.