Project

General

Profile

Bug #23312

Avatar?id=14398&size=22x22

Man page rendering garbled due to unset LANG or LC_ALL

Added by Warren Block over 3 years ago. Updated about 3 years ago.

Status:
Closed: Third party to resolve
Priority:
Nice to have
Assignee:
Kris Moore
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

"–" characters in man pages are rendered as three alien characters in the shell.

With LANG or LC_ALL set to en_US, rendering is fixed.

lang.jpg (57.7 KB) lang.jpg Warren Block, 04/13/2017 09:14 AM
10687

Associated revisions

Revision fad02f9f (diff)
Added by Warren Block over 3 years ago

Add LANG=en_US so man pages render correctly, clean up other stuff. Ticket: #23312

Revision 6e234bd4 (diff)
Added by Warren Block over 3 years ago

Revert "Add LANG=en_US so man pages render correctly, clean up other stuff." This reverts commit fad02f9f8eef7af0ee615044fbdc1858740fdb11. Ticket: #23312

Revision 1347eaec (diff)
Added by Warren Block over 3 years ago

Clean up .cshrc. Ticket: #23312

History

#1 Updated by Warren Block over 3 years ago

  • Status changed from Unscreened to Needs Developer Review
  • Priority changed from No priority to Nice to have

#2 Updated by William Grzybowski over 3 years ago

  • Status changed from Needs Developer Review to Unscreened
  • Assignee set to Warren Block

That does not look right to me.

Default login.conf is en_US.UTF-8

Can you give an example of what looks wrong exactly without this change? I don't see any problems using "man".

#3 Updated by Warren Block over 3 years ago

10687

Example attached. The mdocml (mandoc) mailing list does not have public archives, but reading there suggests (but is not clear) that this might be a bug, and might also be fixed in FreeBSD 11-stable.

#4 Updated by William Grzybowski over 3 years ago

Warren Block wrote:

Example attached. The mdocml (mandoc) mailing list does not have public archives, but reading there suggests (but is not clear) that this might be a bug, and might also be fixed in FreeBSD 11-stable.

Ok, thats because it is trying to render a UTF-8 character in the console which does not support that character.
I dont like this solution since it will render any other language (!= ascii) unusable.

#5 Updated by William Grzybowski over 3 years ago

Can we revert that commit (at least the setenv LANG part), until we figure out something better, please?

#6 Updated by Brandon Schneider over 3 years ago

Yeah or can we set it to UTF-8 by default? This broke iocage because of that.

#7 Updated by Warren Block over 3 years ago

  • Status changed from Unscreened to 15

#8 Updated by William Grzybowski over 3 years ago

There isn't much we can do here.

syscons does not support UTF-8 keymap.

If we remove UTF-8 for console to make man page render correctly from console, then iocage won't work.
I would vote to leave it as is, at least until newcons ("vt") is enabled by default (I was told it currently has problems with serial console).
Thoughts?

#9 Avatar?id=14398&size=24x24 Updated by Kris Moore over 3 years ago

  • Target version changed from 9.10.3 to 9.10.4

Yea, I'd hold off on this for now also. We can re-test enabling "vt" by default now that we are on 11, but we should do it post 9.10.3 since we are down to the wire here.

#10 Avatar?id=14398&size=24x24 Updated by Kris Moore over 3 years ago

  • Target version changed from 9.10.4 to 11.1

#11 Updated by Dru Lavigne about 3 years ago

  • Status changed from 15 to 46
  • Assignee changed from Warren Block to Kris Moore

Kris: is there anything to test here now that we are on 11 or should this ticket be closed?

#12 Avatar?id=14398&size=24x24 Updated by Kris Moore about 3 years ago

  • Status changed from 46 to Closed: Third party to resolve
  • Target version changed from 11.1 to N/A

We'll just chase vt / upstream on this one.

Also available in: Atom PDF