Anda harus mengubah variabel LANG di shell saat ini.
Taruh
export LANG=en_US.UTF-8
dalam file rc shell Anda (untuk bash itu ~/.bashrc
) dan restart sesi terminal (atau cukup sumber file rc sekali lagi dengan source ~/.bashrc
atau bahkan hanya restart bash dengan exec bash
)
Perhatikan, Anda harus membuat lokal ini sebelumnya.
Anda juga bisa menggunakannya export LANG=C
.
Juga ada variabel LANG lainnya (dari man bash):
LANG Used to determine the locale category for any category not
specifically selected with a variable starting with LC_.
LC_ALL This variable overrides the value of LANG and any other LC_
variable specifying a locale category.
LC_COLLATE
This variable determines the collation order used when sorting
the results of pathname expansion, and determines the behavior
of range expressions, equivalence classes, and collating
sequences within pathname expansion and pattern matching.
LC_CTYPE
This variable determines the interpretation of characters and
the behavior of character classes within pathname expansion and
pattern matching.
LC_MESSAGES
This variable determines the locale used to translate double-
quoted strings preceded by a $.
LC_NUMERIC
This variable determines the locale category used for number
formatting.
export LANGUAGE=English