首页 > 其他分享 >utf-8 - 如何修复 'character map file ` UTF-8' not found'

utf-8 - 如何修复 'character map file ` UTF-8' not found'

时间:2022-12-27 11:36:13浏览次数:66  
标签:map en UTF utf character file found

正在设置一个 UBI rhel8 容器。我需要执行这个命令:

localedef -f UTF-8 -i en_US en_US.UTF-8

失败了:
character map file `UTF-8' not found: No such file or directory
cannot read character map directory `/usr/share/i18n/charmaps': No such file or directory

 

最佳答案

你需要安装这些包

yum -y install glibc-locale-source glibc-langpack-en

然后重新运行 localedef 命令

 

关于utf-8 - 如何修复 'character map file ` UTF-8' not found',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58304278/

标签:map,en,UTF,utf,character,file,found
From: https://www.cnblogs.com/exmyth/p/17007674.html

相关文章