把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
This commit is contained in:
gjm committed 2026-10-04 00:04:20 +08:00
1 parent 2b0c2055ff
commit 164968b62e
6171 files changed
+191244 -191243

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#if _MSC_VER > 1000
#pragma once
@@ -60,7 +60,7 @@ inline int procsess2arg(p2argF fun, TCHAR *psz)
if (!psz) return RTERROR;
TCHAR pBuf[BUFFER_LEN] = { 0, };
int nret = fun(pBuf, 512);
// 此处可能崩溃,注意长度
// 此处可能崩溃,注意长度
_tcscpy(psz, pBuf);
return nret;
}
@@ -70,7 +70,7 @@ inline int procsess3arg(p3argF fun, const TCHAR *psz1, TCHAR *psz)
if (!psz) return RTERROR;
TCHAR pBuf[BUFFER_LEN] = { 0, };
int nret = fun(psz1, pBuf, 512);
// 此处可能崩溃,注意长度
// 此处可能崩溃,注意长度
_tcscpy(psz, pBuf);
return nret;
}