fix: CTP 连接后 locale 崩溃,PM2 设置 LANG=C.UTF-8
vnpy_ctp C++ 扩展在缺 locale 时会 terminate;补充 SimNow 备用前置说明。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,6 +6,9 @@ import os
|
||||
import socket
|
||||
import sys
|
||||
|
||||
os.environ.setdefault("LANG", "C.UTF-8")
|
||||
os.environ.setdefault("LC_ALL", "C.UTF-8")
|
||||
|
||||
BASE = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
sys.path.insert(0, BASE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user