-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible typos in src/HLL/CommandLine.nqp #346
Comments
It's in pod documentation rather than code. A pull request to fix it would be useful except Zoffix got there first! |
Thanks. Fixed in 4e7eee0. No repercussion because that area of the file is the POD (documentation), so it doesn't actually get executed.
Confirmed on 2016.11 on default Windows 7 command prompt with and without @samcv perhaps you would have any idea what makes Windows command line unhappy with Unicode? |
I don't think cmd.exe supports unicode. Maybe powershell does (?) |
No idea. If I use
|
My guess then would be that it's an input issue? |
Argh! I got fooled by GitHub syntax highlighting.
Of course it does. The problem is that However, I wrote a wrapper around Am I correct in assuming the culprit is $nqpcomp.command_line(@ARGS, :encoding('utf8'), :transcode('ascii iso-8859-1')); in NQP::Compiler or am I barking up the wrong tree? |
Personally, I have no idea. But if that isn't it, another area to check would probably be: https://github.com/rakudo/rakudo/blob/6990133410d5b9c11c991b00751cdaead3ca04da/src/Perl6/Compiler.nqp#L31-L43 |
I am on a roll today ... I meant to reply to RT #127925 but accidentally created RT #130736. I would appreciate it if you could merge the information in the erroneously created ticket to the correct one. FWIW, my wrapper seems to work with
|
C:\> p5run -E "say ord for @ARGV" ğ
287 which is correct. |
Merged.
Sweet. Hopefully the same method can be applied to Perl 6. |
Well, that's the motivation for my search ... When I do the same thing with |
I think the right place to look is |
oh, also: we can totally #ifdef how our main function works to use wmain and change the other places to use utf16 instead of ... whatever ANSI codepage we currently seem to be using? I myself can't write that code because i have no windows to test it on, but we'd definitely accept a pull request that does that. |
@timo Thank you, I'll look. My wrapper also uses I have to pay attention to something else right now. I'll let you know if I figure it out. |
Any chance you could provide the current wrapper that you have? This way if you won't have time to finish this, at least another volunteer won't have to start from scratch. |
Not yet. |
@timo I am fairly certain I know how to fix this. In principle it is a small change, but it's a fiddly change. Now, I know it annoys people, but I think through things by writing about them, and I may write a blog post or two before I can formulate an actual pull request. Rest assured, it will be coming. |
I've made some progress and explained my process on my blog. I still need to touch the code that sets up the environment, but once I do that, I'll have a pull request. Hope it works on others' machines, too ;-) I don't this ticket is the right place to continue the discussion, so I am going to close this, and open an issue with MoarVM. Thank you @timo for pointing me in the right direction. |
It is entirely possible that I am missing something obvious, but while trying to figure out what happens between typing
and getting the output
on Windows, I was struck by some spelling variations in src/HLL/CommandLine.nqp such as
$paser.add-stopper('-e')
andmy @args := $pasre.arguments
.These look like typos to me, but, not being familiar with the ins and outs of the source, I can't be sure if they are not referencing some globals
$paser
and$pasre
.So, either
HLL::CommandLine
has been broken for a while or there are some poorly named global variables.If these are spelling errors, I am a bit confused by why I haven't been able to spot any repercussions.
The text was updated successfully, but these errors were encountered: