DirectorySearch Does Not Support Unicode

Started by claytoncarney, December 11, 2012, 03:25:23 PM

Previous topic - Next topic

claytoncarney

Avidemux 2.5.6-1 (both 32 and 64-bit) running on Windows 7 64-bit.

The following code fails:

//AD
var ds = new DirectorySearch();
if (ds.Init("D:/Ã,µTorrent")) {
    displayInfo("OK");  // suceeds here
    ds.Close();
} else {
    displayError('Error initializing the directory search');  // fails here
}

Whereas pointed to a directory without Unicode in the name, it succeeds. I've tried replacing Ã,µ with \u03bc, but that fails also.

UPDATE: Actually, this example is only using extended ASCII (dec 181, hex b5). However, further testing reveals that DirectorySearch fails if the directory name contains either extended ASCII or Unicode.