diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2017-03-18 19:09:51 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2017-03-18 19:09:51 +0300 |
commit | d9374412e6841828c226b3529e0483d1a9aa65e9 (patch) | |
tree | 741ce517fadc4120fef99c406ce077bb1951fbbf /functions | |
parent | ec50da4ac5c34046fea46d1e9eb0bebbfd21d01d (diff) |
Add default locale to protect the special characters
Diffstat (limited to 'functions')
-rw-r--r-- | functions/icons.zsh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/functions/icons.zsh b/functions/icons.zsh index 26412543..7cf090a2 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -86,6 +86,8 @@ case $POWERLEVEL9K_MODE in 'awesome-fontconfig') # fontconfig with awesome-font required! See # https://github.com/gabrielelana/awesome-terminal-fonts + # Set the right locale to protect special characters + local LC_ALL="" LC_CTYPE="en_US.UTF-8" icons=( LEFT_SEGMENT_SEPARATOR $'\uE0B0' # RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # @@ -149,6 +151,8 @@ case $POWERLEVEL9K_MODE in 'nerdfont-fontconfig') # nerd-font patched (complete) font required! See # https://github.com/ryanoasis/nerd-fonts + # Set the right locale to protect special characters + local LC_ALL="" LC_CTYPE="en_US.UTF-8" icons=( LEFT_SEGMENT_SEPARATOR $'\uE0B0' # RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # @@ -205,6 +209,8 @@ case $POWERLEVEL9K_MODE in *) # Powerline-Patched Font required! # See https://github.com/Lokaltog/powerline-fonts + # Set the right locale to protect special characters + local LC_ALL="" LC_CTYPE="en_US.UTF-8" icons=( LEFT_SEGMENT_SEPARATOR $'\uE0B0' # RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # @@ -270,6 +276,8 @@ esac # Override the above icon settings with any user-defined variables. case $POWERLEVEL9K_MODE in 'flat') + # Set the right locale to protect special characters + local LC_ALL="" LC_CTYPE="en_US.UTF-8" icons[LEFT_SEGMENT_SEPARATOR]='' icons[RIGHT_SEGMENT_SEPARATOR]='' icons[LEFT_SUBSEGMENT_SEPARATOR]='|' |