github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/scriptpack/stdlib/data/locale.sh (about)

     1  # otto_init_locale sets the locale up for UTF-8
     2  otto_init_locale() {
     3    otto_output "Setting locale to en_US.UTF-8..."
     4    if [[ ! $(locale -a) =~ '^en_US\.utf8' ]]; then
     5        oe sudo locale-gen en_US.UTF-8
     6    fi
     7    oe sudo update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
     8    export LANG=en_US.UTF-8
     9  }