[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bacula-devel] win32 restore warning on german umlauts


I had the same problem when I tried to restore folders with  Japanese file
names in winbacula-2.4.3. I tested Ulrich's suggestion by  replacing chmod
with  the following functions:

int myChmod(const char *file, int pmode)
     int retval;

     POOLMEM* pwszBuf = get_pool_memory(PM_FNAME);
     UTF8_2_wchar(&pwszBuf, file);
     retval = _wchmod((LPCWSTR)pwszBuf, pmode);
     Dmsg2(300, "myChmod %s,  return value=%d¥n", file, retval);
     return retval;

It worked. I did not see the warning messages and the return values were

View this message in context: http://www.nabble.com/win32-restore-warning-on-german-umlauts-tp19955259p20267381.html
Sent from the Bacula - Dev mailing list archive at Nabble.com.

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
Bacula-devel mailing list

This mailing list archive is a service of Copilotco.