summaryrefslogtreecommitdiffstats
path: root/upstream/fedora-rawhide/man5/locale.conf.5
blob: 531a8d8f0d6fa4d78b772a40d4ea97b8be2717db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
'\" t
.TH "LOCALE\&.CONF" "5" "" "systemd 255" "locale.conf"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
locale.conf \- Configuration file for locale settings
.SH "SYNOPSIS"
.PP
/etc/locale\&.conf
.SH "DESCRIPTION"
.PP
The
/etc/locale\&.conf
file configures system\-wide locale settings\&. It is read at early boot by
\fBsystemd\fR(1)\&.
.PP
The format of
locale\&.conf
is a newline\-separated list of environment\-like shell\-compatible variable assignments, ignoring comments and empty lines\&. It is possible to source the configuration from shell scripts, however, beyond mere variable assignments, no shell features are supported, allowing applications to read the file without implementing a shell compatible execution engine\&. See
\fBos-release\fR(5)
for a detailed description of the format\&.
.PP
Note that the kernel command line options
\fIlocale\&.LANG=\fR,
\fIlocale\&.LANGUAGE=\fR,
\fIlocale\&.LC_CTYPE=\fR,
\fIlocale\&.LC_NUMERIC=\fR,
\fIlocale\&.LC_TIME=\fR,
\fIlocale\&.LC_COLLATE=\fR,
\fIlocale\&.LC_MONETARY=\fR,
\fIlocale\&.LC_MESSAGES=\fR,
\fIlocale\&.LC_PAPER=\fR,
\fIlocale\&.LC_NAME=\fR,
\fIlocale\&.LC_ADDRESS=\fR,
\fIlocale\&.LC_TELEPHONE=\fR,
\fIlocale\&.LC_MEASUREMENT=\fR,
\fIlocale\&.LC_IDENTIFICATION=\fR
may be used to override the locale settings at boot\&.
.PP
The locale settings configured in
/etc/locale\&.conf
are system\-wide and are inherited by every service or user, unless overridden or unset by individual programs or users\&.
.PP
Depending on the operating system, other configuration files might be checked for locale configuration as well, however only as fallback\&.
.PP
/etc/locale\&.conf
can be updated using
\fBsystemd-localed.service\fR(8)\&.
\fBlocalectl\fR(1)
may be used to alter the settings in this file during runtime from the command line\&. Use
\fBsystemd-firstboot\fR(1)
to customize them on mounted (but not booted) system images\&.
.SH "OPTIONS"
.PP
The following locale settings may be set using
/etc/locale\&.conf:
\fILANG=\fR,
\fILANGUAGE=\fR,
\fILC_CTYPE=\fR,
\fILC_NUMERIC=\fR,
\fILC_TIME=\fR,
\fILC_COLLATE=\fR,
\fILC_MONETARY=\fR,
\fILC_MESSAGES=\fR,
\fILC_PAPER=\fR,
\fILC_NAME=\fR,
\fILC_ADDRESS=\fR,
\fILC_TELEPHONE=\fR,
\fILC_MEASUREMENT=\fR,
\fILC_IDENTIFICATION=\fR\&. Note that
\fILC_ALL\fR
may not be configured in this file\&. For details about the meaning and semantics of these settings, refer to
\fBlocale\fR(7)\&.
.SH "EXAMPLE"
.PP
\fBExample\ \&1.\ \&German locale with English messages\fR
.PP
/etc/locale\&.conf:
.sp
.if n \{\
.RS 4
.\}
.nf
# Custom settings

LANG=de_DE\&.UTF\-8
LC_MESSAGES=en_US\&.UTF\-8
.fi
.if n \{\
.RE
.\}
.SH "SEE ALSO"
.PP
\fBsystemd\fR(1),
\fBlocale\fR(7),
\fBlocalectl\fR(1),
\fBsystemd-localed.service\fR(8),
\fBsystemd-firstboot\fR(1)