feat: use more universal C.UTF-8 instead of en_US.UTF-8 (#30621)

This commit is contained in:
wangxiaolei
2026-01-06 16:39:04 +08:00
committed by GitHub
parent 5661f821c3
commit 2cc89d30db
4 changed files with 11 additions and 8 deletions

View File

@ -3,8 +3,9 @@
set -e
# Set UTF-8 encoding to address potential encoding issues in containerized environments
export LANG=${LANG:-en_US.UTF-8}
export LC_ALL=${LC_ALL:-en_US.UTF-8}
# Use C.UTF-8 which is universally available in all containers
export LANG=${LANG:-C.UTF-8}
export LC_ALL=${LC_ALL:-C.UTF-8}
export PYTHONIOENCODING=${PYTHONIOENCODING:-utf-8}
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then