version 1.7, 2016/10/26 01:00:27 |
version 1.8, 2020/04/17 10:45:04 |
|
|
.\" $OpenBSD$ |
.\" $OpenBSD$ |
.\" |
.\" |
.\" Copyright 2016 Ingo Schwarze <schwarze@openbsd.org> |
.\" Copyright 2016, 2020 Ingo Schwarze <schwarze@openbsd.org> |
.\" Copyright 2013 Stefan Sperling <stsp@openbsd.org> |
.\" Copyright 2013 Stefan Sperling <stsp@openbsd.org> |
.\" |
.\" |
.\" Permission to use, copy, modify, and distribute this software for any |
.\" Permission to use, copy, modify, and distribute this software for any |
|
|
.Nd character encoding and localization conventions |
.Nd character encoding and localization conventions |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm locale |
.Nm locale |
.Op Fl a | Fl m |
.Op Fl a | Fl m | Cm charmap |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
If the |
If the |
.Nm |
.Nm |
|
|
configuration is shown. |
configuration is shown. |
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width charmap |
.It Fl a |
.It Fl a |
Display a list of supported locales. |
Display a list of supported locales. |
.It Fl m |
.It Fl m |
|
|
On |
On |
.Ox , |
.Ox , |
this always returns UTF-8 only. |
this always returns UTF-8 only. |
|
.It Cm charmap |
|
Display the currently selected character encoding. |
|
On |
|
.Ox , |
|
this returns either US-ASCII or UTF-8. |
.El |
.El |
.Pp |
.Pp |
A locale is a set of environment variables telling programs which |
A locale is a set of environment variables telling programs which |