From 222a2f4feff4d78f859a6d1551cb2c809bf9d1fa Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Sun, 21 Apr 2002 22:20:14 +0000 Subject: [PATCH] fixed problem when multibyte character is included in file path on Windows. If _MBCS is defined, _tcstok is defined as _mbstrtok which is multibyte enabled strtok. If _MBCS is not defined, _tcstok is defined as strtok. --- TSRM/tsrm_virtual_cwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index ae8efd93e4..9c1a5d2925 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -68,7 +68,8 @@ cwd_state main_cwd_state; /* True global */ #endif #ifdef TSRM_WIN32 -#define tsrm_strtok_r(a,b,c) strtok((a),(b)) +#include +#define tsrm_strtok_r(a,b,c) _tcstok((a),(b)) #define TOKENIZER_STRING "/\\" static int php_check_dots(const char *element, int n) -- 2.40.0