fix: compile errors

This commit is contained in:
Shengliang Guan 2024-12-10 07:15:54 +00:00
parent 4c48d05bd3
commit acd87db992
2 changed files with 5 additions and 6 deletions

View File

@ -28,9 +28,9 @@ extern "C" {
#define setlocale SETLOCALE_FUNC_TAOS_FORBID #define setlocale SETLOCALE_FUNC_TAOS_FORBID
#endif #endif
char *taosCharsetReplace(char *charsetstr); char *taosCharsetReplace(char *charsetstr);
void taosGetSystemLocale(char *outLocale, char *outCharset); void taosGetSystemLocale(char *outLocale, char *outCharset);
int32_t taosSetSystemLocale(const char *inLocale); int32_t taosSetSystemLocale(const char *inLocale);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -84,9 +84,8 @@ TEST(osEnvTests, osSufficient) {
ret = osTempSpaceSufficient(); ret = osTempSpaceSufficient();
EXPECT_EQ(ret, true); EXPECT_EQ(ret, true);
osSetSystemLocale(NULL, NULL); taosSetSystemLocale(NULL);
osSetSystemLocale(NULL, NULL); taosSetSystemLocale("1");
osSetSystemLocale("1", "2");
osSetProcPath(1, NULL); osSetProcPath(1, NULL);
osSetProcPath(0, (char **)&ret); osSetProcPath(0, (char **)&ret);