Skip Menu |
Report information
Id: 128154
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: teodozjan <teodozjan [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: mswin32
Patch Status: (no value)
VM: (no value)



Subject: Cannot use qqx in rakudo star on windows7
Download (untitled) / with headers
text/plain 216b
$ perl6 -v This is Rakudo version 2016.04 built on MoarVM version 2016.04 implementing Perl 6.c. $ perl6 To exit type 'exit' or '^D' Show quoted text
> qqx{dir}
Unable to read from 'dir' in block <unit> at <unknown file> line 1
Download (untitled) / with headers
text/plain 250b
Can you switch to a different directory (e.g. C:\) before trying to run the command and see if it still fails? Also, can you try running it outside of the REPL, just with perl6 -e 'say qqx{dir}' I can't reproduce with R* 2016.04 on Windows 10 x64.
Download (untitled) / with headers
text/plain 774b
On Tue Jun 14 19:39:47 2016, cpan@zoffix.com wrote: Show quoted text
> Can you switch to a different directory (e.g. C:\) before trying to > run the command and see if it still fails? > > Also, can you try running it outside of the REPL, just with perl6 -e > 'say qqx{dir}' > > I can't reproduce with R* 2016.04 on Windows 10 x64.
Hi Zoffix, Things you asked for. Hope it helps. $ cd \ $ perl6 -e 'say qqx{dir}' ===SORRY!=== Error while compiling -e Unable to parse expression in single quotes; couldn't find final "'" at -e:1 ------> 'say<HERE><EOL> expecting any of: single quotes term $ type test.p6 use v6; say qqx{dir}; $ perl6 test.p6 Unable to read from 'dir' in block <unit> at test.p6 line 3 Actually thrown at: in block <unit> at test.p6 line 3
Download (untitled) / with headers
text/plain 494b
On Tue Jun 14 19:39:47 2016, cpan@zoffix.com wrote: Show quoted text
> Can you switch to a different directory (e.g. C:\) before trying to > run the command and see if it still fails? > > Also, can you try running it outside of the REPL, just with perl6 -e > 'say qqx{dir}' > > I can't reproduce with R* 2016.04 on Windows 10 x64.
Another interesting result $ perl6 -e "say qqx/dir.exe/" File Not Found Volume in drive C has no label. Volume Serial Number is 04FC-3A2A Directory of c:\Windows\SysWOW64
Also tested on 07 rakudo star with fresh windows 7 with same result
Download (untitled) / with headers
text/plain 416b
I found resolution. It looks like it is problem windows locale issue than perl itself. Running command chcp utf8 Makes work just fine. Default is 852. I'm very supprised because I use unicode encoding all the the time and never had such issue. For me it would be better to detect if codepage is set to 852 and warn user that perl6 may not work well. Shall we close it or leave defect for future improvement?
From: Steve Mynott <steve.mynott [...] gmail.com>
Date: Wed, 11 Jul 2018 10:15:47 +0100
Subject: Re: [perl #128154] [BUG] Cannot use qqx in rakudo star on windows7
To: perl6-bugs-followup [...] perl.org
Download (untitled) / with headers
text/plain 686b
Maybe the Windows port of rakudo should set this automatically on startup? On Wed, 11 Jul 2018 at 10:08, Kamil Kułaga via RT <perl6-bugs-followup@perl.org> wrote: Show quoted text
> > I found resolution. It looks like it is problem windows locale issue than perl itself. > > Running command > > chcp utf8 > > Makes work just fine. Default is 852. I'm very supprised because I use unicode encoding all the the time and never had such issue. For me it would be better to detect if codepage is set to 852 and warn user that perl6 may not work well. Shall we close it or leave defect for future improvement?
-- Steve Mynott <steve.mynott@gmail.com> cv25519/ECF8B611205B447E091246AF959E3D6197190DD5
Date: Thu, 12 Jul 2018 10:57:01 +0200
Subject: Re: [perl #128154] [BUG] Cannot use qqx in rakudo star on windows7
To: perl6-bugs-followup [...] perl.org
From: Kamil Kułaga <teodozjan [...] gmail.com>
Download (untitled) / with headers
text/plain 879b
Will it work fine for utf-16 users? On Wed, Jul 11, 2018 at 11:16 AM Steve Mynott via RT <perl6-bugs-followup@perl.org> wrote: Show quoted text
> > Maybe the Windows port of rakudo should set this automatically on startup? > On Wed, 11 Jul 2018 at 10:08, Kamil Kułaga via RT > <perl6-bugs-followup@perl.org> wrote:
> > > > I found resolution. It looks like it is problem windows locale issue than perl itself. > > > > Running command > > > > chcp utf8 > > > > Makes work just fine. Default is 852. I'm very supprised because I use unicode encoding all the the time and never had such issue. For me it would be better to detect if codepage is set to 852 and warn user that perl6 may not work well. Shall we close it or leave defect for future improvement?
> > > > -- > Steve Mynott <steve.mynott@gmail.com> > cv25519/ECF8B611205B447E091246AF959E3D6197190DD5 >
-- Pozdrawiam Kamil Kułaga
From: Steve Mynott <steve.mynott [...] gmail.com>
To: perl6-bugs-followup [...] perl.org
Date: Thu, 12 Jul 2018 10:17:09 +0100
Subject: Re: [perl #128154] [BUG] Cannot use qqx in rakudo star on windows7
Download (untitled) / with headers
text/plain 1.1k
I'm not sure. Probably your idea of warning about detected encoding is better. S On Thu, 12 Jul 2018 at 09:58, Kamil Kułaga via RT <perl6-bugs-followup@perl.org> wrote: Show quoted text
> > Will it work fine for utf-16 users? > On Wed, Jul 11, 2018 at 11:16 AM Steve Mynott via RT > <perl6-bugs-followup@perl.org> wrote:
> > > > Maybe the Windows port of rakudo should set this automatically on startup? > > On Wed, 11 Jul 2018 at 10:08, Kamil Kułaga via RT > > <perl6-bugs-followup@perl.org> wrote:
> > > > > > I found resolution. It looks like it is problem windows locale issue than perl itself. > > > > > > Running command > > > > > > chcp utf8 > > > > > > Makes work just fine. Default is 852. I'm very supprised because I use unicode encoding all the the time and never had such issue. For me it would be better to detect if codepage is set to 852 and warn user that perl6 may not work well. Shall we close it or leave defect for future improvement?
> > > > > > > > -- > > Steve Mynott <steve.mynott@gmail.com> > > cv25519/ECF8B611205B447E091246AF959E3D6197190DD5 > >
> > > -- > Pozdrawiam > > Kamil Kułaga
-- Steve Mynott <steve.mynott@gmail.com> cv25519/ECF8B611205B447E091246AF959E3D6197190DD5


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org