Add new comment

open_file return -100009 : when path contains french e accent

Hello,
I use a small experimental program with Libraw and Windows 10
Thanks a lot for all the job done !
All worked well with 0.20.2 release and previous also.

When i upgraded for the 0.21.2 release i got an error -100009 for the method "open_file" :

wchar_t* array = new wchar_t[length + 1]
//....
int ret = this->processor->open_file( array ) ;
// ret is -100009

The new method open_file as a wchar_t as parameter : the previous worked well with a char *.
I tried various conversions to get a wchar_t as input : still the same error returned.
This is because path name acn contain an e accent (Latin set )

Question : is there a way to modify the Libraw.h where various #def can switch between :
open_file( wchar_t...) and previous open_file( char *...) ?
Or another simple solution for Windows 64 bits to work as before : with Latin pathnames ?

Thanks a lot for your answer.

Luciano

Forums: