cvs: TSRM / tsrm_virtual_cwd.c

From: Date: Sun, 21 Apr 2002 22:20:15 +0000
Subject: cvs: TSRM / tsrm_virtual_cwd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11301@lists.php.net to get a copy of this message
hirokawa Sun Apr 21 18:20:15 2002 EDT Modified files: /TSRM tsrm_virtual_cwd.c Log: 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. Index: TSRM/tsrm_virtual_cwd.c diff -u TSRM/tsrm_virtual_cwd.c:1.27 TSRM/tsrm_virtual_cwd.c:1.28 --- TSRM/tsrm_virtual_cwd.c:1.27 Tue Dec 11 10:16:20 2001 +++ TSRM/tsrm_virtual_cwd.c Sun Apr 21 18:20:14 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tsrm_virtual_cwd.c,v 1.27 2001/12/11 15:16:20 sebastian Exp $ */ +/* $Id: tsrm_virtual_cwd.c,v 1.28 2002/04/21 22:20:14 hirokawa Exp $ */ #include <sys/types.h> #include <sys/stat.h> @@ -68,7 +68,8 @@ #endif #ifdef TSRM_WIN32 -#define tsrm_strtok_r(a,b,c) strtok((a),(b)) +#include <tchar.h> +#define tsrm_strtok_r(a,b,c) _tcstok((a),(b)) #define TOKENIZER_STRING "/\\" static int php_check_dots(const char *element, int n)

« previous php.cvs (#11301) next »