in reply to Re^2: Trouble with File::Find::Rule
in thread Trouble with File::Find::Rule
You can't use chdir to change the current working directory to a Japanese folder name (Unicode) on Windows. It fails.
Running this trivial Perl script…
#!perl
use strict;
use warnings;
use utf8;
use autodie qw( chdir );
binmode STDERR, ':encoding(UTF-8)';
chdir 'C:/日本/';
…fails with this error message…
Can't chdir('C:/日本/'): No such file or directory at JapanFolder.pl line 8
File::Find uses chdir.
I'm running Strawberry Perl version 5.16.2.
Jim
UPDATE:
Running this Perl script…
#!perl use strict; use warnings; use utf8; use autodie qw( chdir ); binmode STDERR, ':encoding(UTF-8)'; chdir 'C:/Doesn’t Work/';
…fails with this error message…
Can't chdir('C:/Doesn’t Work/'): No such file or directory at DoesntWork.pl line 8
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Trouble with File::Find::Rule
by ww (Archbishop) on Dec 14, 2013 at 11:49 UTC | |
by Jim (Curate) on Dec 15, 2013 at 01:25 UTC |