Need an Introduction to Tiny Core? Or peruse Core Concepts.
$ ./calibreWARNING: Failed to set default libc locale, using en_US.UTF-8Traceback (most recent call last): File "site.py", line 56, in main File "site.py", line 13, in set_default_encoding File "locale.py", line 547, in setlocaleError: unsupported locale setting
$ ./ebook-edit WARNING: Failed to set default libc locale, using en_US.UTF-8Traceback (most recent call last): File "site.py", line 56, in main File "site.py", line 13, in set_default_encoding File "locale.py", line 547, in setlocaleError: unsupported locale setting
$ ls -ltotal 184drwxr-xr-x 2 tc staff 4096 Jun 22 22:33 bin/-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-complete-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-customize-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-debug-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-parallel-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-server-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-smtp-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre_postinstall-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibredb-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-convert-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-device-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-edit-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-meta-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-polish-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-viewer-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 fetch-ebook-metadatadrwxr-xr-x 5 tc staff 4096 Jun 22 22:35 lib/-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 lrf2lrs-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 lrfviewer-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 lrs2lrf-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 markdown-calibredrwxr-xr-x 13 tc staff 4096 Jun 22 22:36 resources/-rwxr-xr-x 1 tc staff 162 Jun 22 22:36 serverauth.mkbWjNxZBv-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 web2disk
$ locale locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directoryLANG=itLC_CTYPE="it"LC_NUMERIC="it"LC_TIME="it"LC_COLLATE="it"LC_MONETARY="it"LC_MESSAGES="it"LC_PAPER="it"LC_NAME="it"LC_ADDRESS="it"LC_TELEPHONE="it"LC_MEASUREMENT="it"LC_IDENTIFICATION="it"LC_ALL=
tc@box:~$ mkdir -p $HOME/.localetc@box:~$ I18NPATH=./wrk/ localedef -f UTF-8 -i it_IT $HOME/.locale/it_IT.UTF-8tc@box:~$ LOCPATH=$HOME/.locale LC_ALL=it_IT.UTF-8 dateWed Jun 22 23:17:42 UTC 2016tc@box:~$ echo "export LOCPATH=\$HOME/.locale" >> $HOME/.bashrctc@box:~$ echo "export LANG=it_IT.UTF-8" >> $HOME/.bashrc
LANG=itLC_CTYPE="it"LC_NUMERIC="it"LC_TIME="it"LC_COLLATE="it"LC_MONETARY="it"LC_MESSAGES="it"LC_PAPER="it"LC_NAME="it"LC_ADDRESS="it"LC_TELEPHONE="it"LC_MEASUREMENT="it"LC_IDENTIFICATION="it"LC_ALL=
Note that if you want to set the locale to it_IT you must also specify the .utf8
$ export LANG="it_IT.UTF-8"$ export LC_ALL="it_IT.UTF-8"$ export LC_CTYPE="it_IT.UTF-8"$ sudo getlocale.sh
$ export LC_ALL=C