# New Ticket Created by A. Sinan Unur # Please include the string: [perl #130736] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=130736 >
The problem is caused by the fact that moar.exe uses main rather than wmain, so it has no hope of getting the right characters if anything outside of the code page is used. However, I wrote a wrapper around moar.exe which basically does what perl6.bat does but UTF-8 encodes the command line arguments which moar.exe relays to whatever executes Perl 6 code. In that case, I get incorrectly encoded output as in: C:\> p6run -e "say 'yağmur'" yaÄŸmur and C:\> p6run yağmur.pl6 Could not open yaÄŸmur.pl6. Failed to stat file: no such file or directory perl and a bunch of other programs also use main instead of wmain, so they also end up echoing "yagmur" instead of "yağmur" and attempt to open "yagmur.pl" instead of "yağmur.pl6", but that is beside the point. I would like to know what encoding is assumed for command line arguments to perl6 and where that is determined/implemented/handled. Thank you. -- Sinan