View Single Post
  #1   (View Single Post)  
Old 7th January 2018
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default Weird characters on OpenBSD console (update)

I've noticed several unexpected characters appear when using the console, and when using the man command, the â character (U+00E2) will appear, replacing the hyphen and certain quotation marks.

I'm sure it's a simple setting I've overlooked, but I couldn't find anything applicable in the FAQ or online search.

My locale is set to UTF-8 (LC_CTYPE=en_US.UTF-8), and $TERM is vt220, the default.

Here is an example:

Code:
LS(1)                       General Commands Manual                      LS(1)

NAME
     ls â list directory contents

SYNOPSIS
     ls [-1AaCcdFfgHhikLlmnopqRrSsTtux] [file ...]

DESCRIPTION
     For each operand that names a file of a type other than directory, ls
     displays its name as well as any requested, associated information.  For
     each named directory, ls displays the names of files contained within
     that directory, as well as any requested, associated information.

     If no operands are given, the contents of the current directory are
     displayed.  If more than one operand is given, non-directory operands are
     displayed first; directory and non-directory operands are sorted
     separately and in lexicographical order.  By default, ls lists one entry
     per line to standard output; the exceptions are to terminals or when the
     -C, -m, or -x options are specified.

     The options are as follows:

     -1      (The numeric digit “one”.) Force output to be one entry per line.
             This is the default when output is not to a terminal.

     -A      List all entries except for â.â and â..â.  Always set for the
             superuser.
As can be seen after the NAME line (hyphen replaced by â) and the -A option (single quotation marks replaced by â), this can become rather annoying when reading a lot of man pages, as I do.

This only appears on the console, not in X or when using ssh.

Thanks for any info.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'

Last edited by ip6ix; 9th January 2018 at 09:40 PM. Reason: More info.
Reply With Quote