Shniperson
Shniperson

Reputation: 549

error if path to includes non latin characters

OS: windows 10 Perl6: This is Rakudo Star version 2018.04.1 built on MoarVM version 2018.04.1 implementing Perl 6.c.

Example:

perl6 C:\Users\quest\Desktop\example.pl
# sucess

perl6 "C:\Users\quest\Desktop\яп\Perl 6\web-scraping\request.pl"
# Could not open C:\Users\quest\Desktop\╤П╨┐\Perl 6\web-scraping\request.pl. Failed to open file C:\Users\quest\Desktop\╤П╨┐\Perl 6\web-scraping\request.pl: No such file or directory

Python 3 example:

py "C:\Users\quest\Desktop\яп\py\3\timetest.py"
# sucess

Upvotes: 8

Views: 3606

Answers (1)

Christoph
Christoph

Reputation: 169793

As you have realized, Windows 10 supports UTF-8 for non-Unicode (ie non-UTF-16) apps (according to Wikipedia, this feature was added with build 17035, released in April 2018, and is still marked 'beta'). This makes Rakudo happy.

However, not respecting your locale while Python manages to do so still seems worthy of a bug report to me.

Upvotes: 5

Related Questions