Bug 11594 - 在Anolis OS 23上执行locale -a,会报Cannot set LC_CTYPE/LC_MESSAGES/LC_COLLATE to default locale
Summary: 在Anolis OS 23上执行locale -a,会报Cannot set LC_CTYPE/LC_MESSAGES/LC_COLLATE to def...
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-31 18:28 UTC by wb-qtt862918
Modified: 2024-10-31 18:29 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wb-qtt862918 2024-10-31 18:28:19 UTC
[问题描述]:
在Anolis OS 23上执行locale -a,只有少部分可设置区域结果
[环境信息]:
机器类型:ECS

[内核信息]:
uname -r
6.6.25-2.1.an23.x86_64

[操作系统信息]:
cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"


[重现步骤]:
1、在an23环境上执行locale -a命令,查看返回结果


预期结果:
1、正常返回所有区域设置名称

实际结果:
locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.utf8
POSIX
Comment 1 wb-qtt862918 2024-10-31 18:29:59 UTC
内核为5.10.134-17.2.al8.x86_64机器执行locale -a有正常返回


uname -r
5.10.134-17.2.al8.x86_64
locale -a
aa_DJ
aa_DJ.iso88591
aa_DJ.utf8
aa_ER
aa_ER@saaho
aa_ER.utf8
aa_ER.utf8@saaho
aa_ET
aa_ET.utf8
af_ZA
af_ZA.iso88591
af_ZA.utf8
agr_PE
agr_PE.utf8
ak_GH
ak_GH.utf8
am_ET
am_ET.utf8
an_ES
an_ES.iso885915
an_ES.utf8
anp_IN
anp_IN.utf8
ar_AE
ar_AE.iso88596
ar_AE.utf8