From a72acd8e701c1bfeb8aeefad8af2c3be9ccf6790 Mon Sep 17 00:00:00 2001 From: zhaolei <353719554@qq.com> Date: Wed, 4 Mar 2026 16:09:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=90=8E=E5=86=8D=E5=8C=B9=E9=85=8DINI?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Slfio/src/LogIO.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Slfio/src/LogIO.cpp b/Slfio/src/LogIO.cpp index f1d6243..b745df4 100644 --- a/Slfio/src/LogIO.cpp +++ b/Slfio/src/LogIO.cpp @@ -2868,8 +2868,11 @@ int CLogIO::SetTableFieldData(int index,int FieldNo,char *buf,int Rec) int flag=0; if(field[i].Reserved>0&&field[i].Reserved<=m_MenuNumber) { - if(/*isalpha(buf[0])||*/(buf[0]&0x80&&buf[1]&0x80)) { - float ind=GetReservedIndex(buf,field[i].Reserved); + char buf_T[513]; + QString qsColumn = QString::fromLocal8Bit(buf); + strcpy(buf_T, qsColumn.toStdString().c_str()); + if(/*isalpha(buf_T[0])||*/(buf_T[0]&0x80&&buf_T[1]&0x80)) { + float ind=GetReservedIndex(buf_T,field[i].Reserved); if(ind>-1) { SetData(field[FieldNo].RepCode,&Buffer[len],(float *)&ind); flag=1;