fix: 强制设置有效 locale 修复 vnpy_ctp CTP 登录崩溃
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user