#1169. Fixing issues concerning msvc2005/EXV_UNICODE_PATH

v0.27.3
Robin Mills 9 years ago
parent 177527402d
commit aa7e277dbc

@ -131,7 +131,7 @@ typedef int pid_t;
#define EXV_SEPARATOR_CHR '\\' #define EXV_SEPARATOR_CHR '\\'
/* Windows unicode path support */ /* Windows unicode path support */
// #define EXV_UNICODE_PATH // #define EXV_UNICODE_PATH 1
/* Define to 1 if you have the `mmap' function. */ /* Define to 1 if you have the `mmap' function. */
/* #undef EXV_HAVE_MMAP */ /* #undef EXV_HAVE_MMAP */

@ -25,6 +25,7 @@ T A B L E o f C O N T E N T S
1.5 Building with exiv2-webready.sln 1.5 Building with exiv2-webready.sln
1.6 What is build 1.6 What is build
1.7 Express editions of Visual Studio (or 32 bit only builds, or 64 bit only builds) 1.7 Express editions of Visual Studio (or 32 bit only builds, or 64 bit only builds)
1.8 UNICODE Path support
2 Design 2 Design
2.1 Architecture 2.1 Architecture
@ -207,6 +208,11 @@ T A B L E o f C O N T E N T S
To remove the "memory" of old configurations: To remove the "memory" of old configurations:
setbuild.py reset setbuild.py reset
1.8 UNICODE PATH Support
Edit the file include/exiv2/exv_msvc.h to set the appropriate flag.
#define EXV_UNICODE_PATH 1
2 Design 2 Design

@ -2040,7 +2040,7 @@ namespace {
FILE* f = ::fopen(target.c_str(),"rb") ; FILE* f = ::fopen(target.c_str(),"rb") ;
if ( f ) { if ( f ) {
char buffer[8*1024]; char buffer[8*1024];
int n = 1 ; size_t n = 1 ;
while ( !feof(f) && n > 0) { while ( !feof(f) && n > 0) {
n=fread(buffer,1,sizeof buffer,f); n=fread(buffer,1,sizeof buffer,f);
fwrite(buffer,1,n,stdout); fwrite(buffer,1,n,stdout);

Loading…
Cancel
Save