fix: 强制设置有效 locale 修复 vnpy_ctp CTP 登录崩溃

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-24 11:38:19 +08:00
parent f73d436077
commit d368317c1b
8 changed files with 85 additions and 16 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ need_install git git
# vnpy_ctp 在 Linux 上需本地编译(Meson + pkg-config 查找 python3-dev
echo "==> 安装 vnpy_ctp 编译依赖..."
apt-get install -y build-essential python3-dev pkg-config locales
locale-gen en_US.UTF-8 2>/dev/null || true
update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8 2>/dev/null || true
locale-gen en_US.UTF-8 C.UTF-8 2>/dev/null || true
update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 2>/dev/null || true
if ! command -v pm2 &>/dev/null; then
echo "==> 安装 PM2..."