首页 > 解决方案 > 如何在 neovim 打开时删除“警告:无法设置语言环境类别...”?

问题描述

Warning: Failed to set locale category LC_NUMERIC to en_IT.
Warning: Failed to set locale category LC_TIME to en_IT.
Warning: Failed to set locale category LC_COLLATE to en_IT.
Warning: Failed to set locale category LC_MONETARY to en_IT.
Warning: Failed to set locale category LC_MESSAGES to en_IT.
Warning: Failed to set locale category LC_NUMERIC to en_IT.
Warning: Failed to set locale category LC_TIME to en_IT.
Warning: Failed to set locale category LC_COLLATE to en_IT.
Warning: Failed to set locale category LC_MONETARY to en_IT.
Warning: Failed to set locale category LC_MESSAGES to en_IT.

标签: neovim

解决方案


如果要添加.bash_profile、.zprofile:

#Warning: Failed to set locale category LC_*** to en_UA.
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

然后以下命令也将显示结果输出:

locale

推荐阅读