dacav / App-PFT

Static website application
GNU General Public License v3.0
8 stars 2 forks source link

Locale is needed #4

Closed dacav closed 7 years ago

dacav commented 7 years ago

@luckypoem

root@ary:/usr/local/app-pft-site# pft-make
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "zh_CN.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
root@ary:/usr/local/app-pft-site# ls
build content inject pft.yaml templates
root@ary:/usr/local/app-pft-site#
dacav commented 7 years ago

Solution:

Under a debian-like system, probably installing the locales-all package will solve this.

sudo apt install locales-all

Details

Setting the locale requires locale data to be installed in the system. The LC_* environment variables control what locale to use. Perl tries to honor them, but if the locale data is not available it falls back on the C locale (AKA POSIX).

Actually I'm a bit surprised you managed to install in the first place, since some parts of the unit-test suite test the correctness of Unicode support. They tend to fail when you don't set the locale properly, and I never had time to fix it, so far.