zplug / installer

:inbox_tray: zplug installer
19 stars 26 forks source link

Installer fails if locale setting is incorrect. #7

Open niyaton opened 7 years ago

niyaton commented 7 years ago

Installer script will fail and output nothing to resolve problem if locale setting is incorrect. I tried zplug in ubuntu on Docker but docker container does not set locale to output UTF-8 characters as a default setting. In latest ubuntu container that just installed zsh, the installer will fail and output following message.

$ curl -sL zplug.sh/installer | zsh
 #
$

I think just printing "incorrect locale settings" is more convenient to solve this problem by each user.

babarot commented 7 years ago

Thanks for reporting. Please tell us your locale setting.

sgade commented 7 years ago

Just ran into the same problem. My locale in debian:stable is:

LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
tejasbubane commented 7 years ago

Ran into the same problem on OSX Sierra 10.12.5 (16F73).

Locales:

LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

The installer command just says Checking if zsh version is newer than ... and does nothing. My zsh version is zsh 5.3.1 (x86_64-apple-darwin16.3.0).