glibc 升级导致Linux显示中文乱码
centos 7
glibc 版本从2.17升级到2.28,显示中文乱码,locale出现No such file or directory 或者
-bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.utf-8)
原因及解决
https://jacklee.life/%E6%93%8D%E4%BD%9C%E8%AE%B0%E5%BD%95/2020-08-13-%E5%8D%87%E7%BA%A7glibc%20%E5%AF%BC%E8%87%B4%E7%9A%84locale%20%E9%97%AE%E9%A2%98.html
make install 新版glibc后,要执行
make localedata/install-locales