Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error if path to includes non latin characters

Tags:

raku

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
like image 719
Shniperson Avatar asked Oct 13 '18 20:10

Shniperson


1 Answers

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.

like image 78
Christoph Avatar answered Oct 29 '22 21:10

Christoph