Re: Bug in dir() leads to Unicode and win_dir()

new topic     » goto parent     » topic index » view thread      » older message » newer message

Greg Haberek wrote:
> 
> While working on my Backup Utility for work, I found a bug in
> Euphoria's dir() routine. It does not support extended ASCII
> characters and just returns a question mark '?' in place of unknown
> characters.

Hi. While this is great news and probably explain a crash I am having at
work, I have encountered a problem with this, ie:

junk = win_dir(folname)

the t_race shows after this line:
folname={70F,58:,92\,100d,97a,116t,97a,92\,109m,117u,115s,105i,99c}
junk={{{109m,117u,115s,105i,99c},{100d},0,105i,7,7,0,8,23}}


Which is not right, since there is no 'music' subfolder of "F:\data\music".

I'm running WinXP SP2 and the F: Drive is NTFS.

Also, while I'm here, when this didn't work I was attempting to add this 
to the include file:

global function walk_win_dir(sequence path_name, integer your_function,
                               integer scan_subdirs)
    object nothing

    my_dir = routine_id("win_dir") -- use win_dir() please
                                   -- my_dir is global atom in file.e
    nothing = walk_dir(path_name, your_function, scan_subdirs)
    my_dir = -2 	           -- constant DEFAULT=-2 in file.e
    return nothing
end function


I don't know if this can be incorporated?

Gary

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu