diff --git a/include/exiv2/exv_msvc.h b/include/exiv2/exv_msvc.h index 167a8abd..0c86fc1e 100644 --- a/include/exiv2/exv_msvc.h +++ b/include/exiv2/exv_msvc.h @@ -131,7 +131,7 @@ typedef int pid_t; #define EXV_SEPARATOR_CHR '\\' /* Windows unicode path support */ -// #define EXV_UNICODE_PATH +// #define EXV_UNICODE_PATH 1 /* Define to 1 if you have the `mmap' function. */ /* #undef EXV_HAVE_MMAP */ diff --git a/msvc2005/ReadMe.txt b/msvc2005/ReadMe.txt index af5cd0e5..1da55fc7 100644 --- a/msvc2005/ReadMe.txt +++ b/msvc2005/ReadMe.txt @@ -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.6 What is build 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.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: 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 diff --git a/src/actions.cpp b/src/actions.cpp index f5c563d8..78247f87 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -2040,7 +2040,7 @@ namespace { FILE* f = ::fopen(target.c_str(),"rb") ; if ( f ) { char buffer[8*1024]; - int n = 1 ; + size_t n = 1 ; while ( !feof(f) && n > 0) { n=fread(buffer,1,sizeof buffer,f); fwrite(buffer,1,n,stdout);