in reply to Tk causes problems with file paths containing non-Latin-1 chars
#this decode utf8 routine is used so filenames with extended # ascii characters (unicode) in filenames, will work properly use Encode; opendir my $dh, $path or warn "Error: $!"; my @files = grep !/^\.\.?$/, readdir $dh; closedir $dh; @files = map { decode( 'utf8', "$path/".$_ ) } sort @files;
Tk still works, but the active developer died a few years ago. If you want or need the kind of robust filesystem reading which you described, switch to Gtk2. It is very active, and bug fixes come in a matter of weeks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk causes problems with file paths containing non-Latin-1 chars
by ron7 (Beadle) on May 03, 2011 at 22:50 UTC | |
|
Re^2: Tk causes problems with file paths containing non-Latin-1 chars
by vkon (Curate) on May 03, 2011 at 18:04 UTC | |
|
Re^2: Tk causes problems with file paths containing non-Latin-1 chars
by vkon (Curate) on May 03, 2011 at 18:39 UTC |