aboutsummaryrefslogtreecommitdiff
path: root/config/p10k-lean.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'config/p10k-lean.zsh')
-rw-r--r--config/p10k-lean.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 8704c59b..696d6a4e 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -16,7 +16,8 @@ fi
() {
emulate -L zsh
setopt no_unset
- if [[ ${LC_ALL:-${LANG:-}} != *.(utf|UTF)(-|)8 ]]; then
+ zmodload zsh/langinfo
+ if [[ ${langinfo[CODESET]:-} != (utf|UTF)(-|)8 ]]; then
local LC_ALL=${${(@M)$(locale -a):#*.(utf|UTF)(-|)8}[1]:-en_US.UTF-8}
fi