On freshly installed Ubuntu Core 16 for Raspberry Pi 3, calling locale prints:
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="C.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="C.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
I'm assuming some of those values are set by ssh client.
How to generate new locale? I cannot find locale-gen and there is no locales package.
export LANG=localein your~/.profilefile, with the word locale being the locale you want to use? Usually changing just the lang is good enough. Also, have you looked into using thesetlocalecommand? – Ken May 4 '17 at 5:00setlocalein PATH, a least non in the base image for raspberrypi. I can set the locales using env variables, but there only seem to be one possible value, that isC.UTF-8. – chrmod May 4 '17 at 21:58