There are some obvious issues, but I think this can be remedied easily.
Here is an example of what the output should look like...
xubuntu@xubuntu:~$ echo $LC_CTYPE
xubuntu@xubuntu:~$ echo $LANG en_CA.UTF-8 xubuntu@xubuntu:~$ xubuntu@xubuntu:~$ locale LANG=en_CA.UTF-8 LANGUAGE= LC_CTYPE="en_CA.UTF-8" LC_NUMERIC="en_CA.UTF-8" LC_TIME="en_CA.UTF-8" LC_COLLATE="en_CA.UTF-8" LC_MONETARY="en_CA.UTF-8" LC_MESSAGES="en_CA.UTF-8" LC_PAPER="en_CA.UTF-8" LC_NAME="en_CA.UTF-8" LC_ADDRESS="en_CA.UTF-8" LC_TELEPHONE="en_CA.UTF-8" LC_MEASUREMENT="en_CA.UTF-8" LC_IDENTIFICATION="en_CA.UTF-8" LC_ALL= xubuntu@xubuntu:~$ xubuntu@xubuntu:~$ locale charmap UTF-8 xubuntu@xubuntu:~$ xubuntu@xubuntu:~$ cat /etc/default/locale LANG=en_CA.UTF-8 xubuntu@xubuntu:~$ xubuntu@xubuntu:~$ cat /etc/rc.conf cat: /etc/rc.conf: No such file or directory xubuntu@xubuntu:~$ xubuntu@xubuntu:~$ cat /etc/locale.conf cat: /etc/locale.conf: No such file or directory xubuntu@xubuntu:~$ xubuntu@xubuntu:~$ grep "^[^#;]" /etc/locale.gen en_CA.UTF-8 UTF-8 xubuntu@xubuntu:~$ xubuntu@xubuntu:~$ dpkg -l locales Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=============================-===================-===================-=============================================================== ii locales 2.27-3ubuntu1.2 all GNU C Library: National Language (locale) data [support] xubuntu@xubuntu:~$ xubuntu@xubuntu:~$ python3 --version Python 3.6.9 xubuntu@xubuntu:~$ python3 Python 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.version_info sys.version_info(major=3, minor=6, micro=9, releaselevel='final', serial=0) >>> sys.stdout.encoding 'UTF-8' >>> exit()
There are some obvious issues, but I think this can be remedied easily.
Here is an example of what the output should look like...
xubuntu@xubuntu:~$ echo $LC_CTYPE
xubuntu@xubuntu:~$ echo $LANG "en_CA. UTF-8" "en_CA. UTF-8" "en_CA. UTF-8" "en_CA. UTF-8" "en_CA. UTF-8" "en_CA. UTF-8" "en_CA. UTF-8" "en_CA. UTF-8" "en_CA. UTF-8" "en_CA. UTF-8" "en_CA. UTF-8" ON="en_ CA.UTF- 8" Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ======= =====-= ======= ======= ====-== ======= ======= ===-=== ======= ======= ======= ======= ======= ======= ======= ======= ==== info(major= 3, minor=6, micro=9, releaselevel= 'final' , serial=0)
en_CA.UTF-8
xubuntu@xubuntu:~$
xubuntu@xubuntu:~$ locale
LANG=en_CA.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
xubuntu@xubuntu:~$
xubuntu@xubuntu:~$ locale charmap
UTF-8
xubuntu@xubuntu:~$
xubuntu@xubuntu:~$ cat /etc/default/locale
LANG=en_CA.UTF-8
xubuntu@xubuntu:~$
xubuntu@xubuntu:~$ cat /etc/rc.conf
cat: /etc/rc.conf: No such file or directory
xubuntu@xubuntu:~$
xubuntu@xubuntu:~$ cat /etc/locale.conf
cat: /etc/locale.conf: No such file or directory
xubuntu@xubuntu:~$
xubuntu@xubuntu:~$ grep "^[^#;]" /etc/locale.gen
en_CA.UTF-8 UTF-8
xubuntu@xubuntu:~$
xubuntu@xubuntu:~$ dpkg -l locales
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii locales 2.27-3ubuntu1.2 all GNU C Library: National Language (locale) data [support]
xubuntu@xubuntu:~$
xubuntu@xubuntu:~$ python3 --version
Python 3.6.9
xubuntu@xubuntu:~$ python3
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version_info
sys.version_
>>> sys.stdout.encoding
'UTF-8'
>>> exit()