On 11/03/12 18:26, Gonzalo Garramuno wrote:
> I am working on windows and fltk2.0's filename_list returns 0 elements
> when the directory is unicode like:
> 
> C:/Users/gga/Documents/Mis vídeos/
> 
> I checked the fltk code and the scandir of windows it seems it should work 
> fine,
> but it doesn't.

        Do you find the regular C library functions aren't working correctly
        with the filenames? eg. scandir()/opendir()/readdir()?

        If so, maybe check to see if environment variables like LANG and LOCALE
        are properly set; IIRC the C library needs stuff like that set to 
operate
        correctly.

        Since the library calls like readdir() work directly with the OS to get
        pathnames, since their API is char based, I would think they need to
        detect wide char Unicode data and convert it to utf8, or some such..
        and I think vars like LANG and LOCALE help it in that respect.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to