Re: Bug in dir() leads to Unicode and win_dir()
- Posted by Greg Haberek <ghaberek at gmail.com> Jul 19, 2005
- 501 views
> Do you think it's worth trying to find the cause of this and fix it in > win_dir() or to implement a new walk_win_dir() ? I think I may need to tweak walk_win_dir(). Also I'm trying to prepend win_ to Euphoria routines, so it will be called win_walk_dir() instead. I think in order to better support the dir()/win_dir() compatibility, I'm going to have it check to see if the path is a directory, and if so, look *in* that directory for files. This will allow me to make win_walk_dir() like this:
global function win_walk_dir( sequence path, integer rtn_id, integer sub_di= rs ) integer old_rtn, retv old_rtn = my_dir my_dir = routine_id("win_dir") retv = walk_dir( path, rtn_id, sub_dirs ) my_dir = old_rtn return retv end function
> Good job on this BTW :) Thanks!! I'm glad someone is already using it. I'm also perfecting the Unicode support, so check for updates every few days. I think I may have a way around the A/W versions of dll routines. If so, Derek may be able to implement my code in the next Win32Lib so it will fully support Unicode. ~Greg