[perl #130474] IO::Socket::INET - Fails to parse host:port for IPv6 addresses

2017-01-02 Thread Zoffix Znet via RT
On Sat, 31 Dec 2016 19:21:51 -0800, dougljenk...@gmail.com wrote: > The IO::Socket::INET has code to split the port from the host name when > passed like this: > 127.0.0.1:3000 > > But when using IPv6 addresses > [::1]:3000 > > The code fails because the function to split IPv6 addresses returns a

[perl #128184] [UNI] utf8-c8 is not reversable: encode/decode mismatch

2017-01-02 Thread jn...@jnthn.net via RT
On Thu, 19 May 2016 05:32:10 -0700, hmbrand wrote: > Two issues > > I use this to test: > --8<--- > #!perl6 > > use v6; > > use Test; > > for ^32 { > > say ""; > say $_; > > my @data = ^20 .map({ 256.rand.Int }).list; > @data.unshift: 61; > > #dd @data; > > my $b = Buf.new(@data); > > ok((

[perl #130483] [UNI] Regex Unicode properties check values before checking property names

2017-01-02 Thread via RT
# New Ticket Created by Samantha McVey # Please include the string: [perl #130483] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130483 > See test in properties-general.t The test used to pass before, but only because 'space

[perl #130465] [REGEX] :ignoremark works on quoted literals, but not on backslash escapes

2017-01-02 Thread jn...@jnthn.net via RT
On Sat, 31 Dec 2016 05:09:51 -0800, moritz.l...@gmail.com wrote: > m m: say so qq["\c[COMBINING TILDE]"] ~~ / ^ :ignoremark '"'/ > rakudo-moar f0c0b0: OUTPUT«True␤» > m: say so qq["\c[COMBINING TILDE]"] ~~ / ^ :ignoremark \"/ > rakudo-moar f0c0b0: OUTPUT«False␤» > > The version where I use \"

[perl #130485] » is no longer shuffled (».say)

2017-01-02 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #130485] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130485 > Code: ».say Result (2015.07): d b c a Result (HEAD): a b c d The

[perl #130486] Should an unknown encoding throw X::IO instead of X::AdHoc?

2017-01-02 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #130486] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130486 > I was playing with encodings for spurt. I wanted to output some Turkish text, failed, an

Re: [perl #130460] Can we relax indir's test on the target directory?

2017-01-02 Thread Joachim Durchholz
Am 30.12.2016 um 23:06 schrieb brian d foy (via RT): I don't know why it insists that the directory be writable, expecially when chdir itself is not as strict. I often change to a directory where I want to merely read files, so I'd like to see the test relaxed. If you go by Posix logic, indir a

Re: [perl #130460] Can we relax indir's test on the target directory?

2017-01-02 Thread Brandon Allbery
On Fri, Dec 30, 2016 at 5:41 PM, Joachim Durchholz wrote: > > The usual reason would be portability, but at least Windows follows the > Posix path in this regard. But all bets are off if it's a network filesystem. -- brandon s allbery kf8nh sine nomine associates

[perl6/specs] 78c421: S05-regex.pod: clairify that trailing whitespace i...

2017-01-02 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 78c4211e940306f896086f6304b470a4cdcb954c https://github.com/perl6/specs/commit/78c4211e940306f896086f6304b470a4cdcb954c Author: Samantha McVey Date: 2017-01-01 (Sun, 01 Jan 2017) Changed paths: M S05

[perl #130465] :ignoremark works on quoted literals, but not on backslash escapes

2017-01-02 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #130465] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130465 > m m: say so qq["\c[COMBINING TILDE]"] ~~ / ^ :ignoremark '"'/ rakudo-moar f0c0b0: OUTPUT

[perl #130474] IO::Socket::INET - Fails to parse host:port for IPv6 addresses

2017-01-02 Thread via RT
# New Ticket Created by Douglas Jenkins # Please include the string: [perl #130474] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130474 > The IO::Socket::INET has code to split the port from the host name when passed like th

Re: [perl #130473] AutoReply: IO::Socket::INET Accepts invalid family values.

2017-01-02 Thread Douglas Jenkins
https://github.com/rakudo/rakudo/pull/981 Pull request to resolve issue On Sat, Dec 31, 2016 at 7:20 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "IO::Socket::INET Accepts invalid fa

[perl #130475] IO::Socket::INET Invalid ports don't fail

2017-01-02 Thread via RT
# New Ticket Created by Douglas Jenkins # Please include the string: [perl #130475] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130475 > When specifying a connection to a port larger than the maximum TCP/UDP port number (65

Re: [perl #130478] multi doesn't work with 'is native'

2017-01-02 Thread Kaare Rasmussen
What does "doesn't work" mean? Please be specific about the problem and include your perl6 --version On my HEAD build the second one fails with Cannot invoke object with invocation handler in this context in sub getgrgid at test.p6 line 11 in block at test.p6 line 15 I'm not impressed

Re: [perl #130475] AutoReply: IO::Socket::INET Invalid ports don't fail

2017-01-02 Thread Douglas Jenkins
https://github.com/rakudo/rakudo/pull/981 Pull request to resolve issue On Sat, Dec 31, 2016 at 7:25 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "IO::Socket::INET Invalid ports don'

Re: [perl #130478] AutoReply: multi doesn't work with 'is native'

2017-01-02 Thread Kaare Rasmussen
Perhaps it would be an idea to include the error message: Cannot invoke object with invocation handler in this context in sub getgrgid at b line 11 in block at b line 15 and the perl6 --version This is Rakudo version 2016.12-118-g3baffe7 built on MoarVM version 2016.12-21-g3dc5647 im

Re: [perl #130475] IO::Socket::INET Invalid ports don't fail

2017-01-02 Thread Douglas Jenkins
PR for tests and update to spectest.data https://github.com/perl6/roast/pull/212 rakudo/rakudo#986 On Sun, Jan 1, 2017 at 6:54 PM, Zoffix Znet via RT < perl6-bugs-follo...@perl.org> wrote: > On Sat, 31 Dec 2016 19:25:57 -0800, dougljenk...@gmail.com wro

[perl #130473] IO::Socket::INET Accepts invalid family values.

2017-01-02 Thread via RT
# New Ticket Created by Douglas Jenkins # Please include the string: [perl #130473] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130473 > The constructor for IO::Socket::INET has a parameter ':family' to determine if the hos

[perl #130472] [LTA] permutations and combinations don't have a :distinct parameter

2017-01-02 Thread via RT
# New Ticket Created by Michael Schaap # Please include the string: [perl #130472] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130472 > The permutations and combinations routines both give all possibilities, even if they'r

Re: [perl #130472] [RFC] permutations and combinations don't have a :distinct parameter

2017-01-02 Thread Michael Schaap
On 1-Jan-17 7:16, Zoffix Znet via RT wrote: On Sat, 31 Dec 2016 18:59:43 -0800, pe...@mscha.org wrote: The permutations and combinations routines both give all possibilities, even if they're not distinct. > .permutations ((a b b) (a b b) (b a b) (b b a) (b a b) (b b a)) > .combinations(2) (

Re: [perl #130473] IO::Socket::INET Accepts invalid family values.

2017-01-02 Thread Douglas Jenkins
PR for tests and update to spectest.data https://github.com/perl6/roast/pull/212 rakudo/rakudo#986 On Sun, Jan 1, 2017 at 6:53 PM, Zoffix Znet via RT < perl6-bugs-follo...@perl.org> wrote: > On Sat, 31 Dec 2016 19:20:05 -0800, dougljenk...@gmail.com wro

[perl #130480] Problem with character ranges

2017-01-02 Thread via RT
# New Ticket Created by # Please include the string: [perl #130480] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130480 > This statement my @stuff = "\x0"... "\xfff" hangs the REPL for a while. In fact, memory as repo

Re: [perl #130419] |, ^, and & character class set operators aren't parseable

2017-01-02 Thread brian d foy
If these are intended to be future features (and for Unicode compliance I think they are), maybe mark it as stalled instead. I tend to think of rejected tickets as not valid or wrong, which this one isn't. It's still something that needs to happen in the future.

Re: [perl #130474] IO::Socket::INET - Fails to parse host:port for IPv6 addresses

2017-01-02 Thread Douglas Jenkins
https://github.com/perl6/roast/pull/211 Added test On Sun, Jan 1, 2017 at 6:54 PM, Zoffix Znet via RT < perl6-bugs-follo...@perl.org> wrote: > On Sat, 31 Dec 2016 19:21:51 -0800, dougljenk...@gmail.com wrote: > > The IO::Socket::INET has code to split the port from the host name when > > passed

Re: [perl #130474] AutoReply: IO::Socket::INET - Fails to parse host:port for IPv6 addresses

2017-01-02 Thread Douglas Jenkins
https://github.com/rakudo/rakudo/pull/981 Pull request to resolve issue On Sat, Dec 31, 2016 at 7:21 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "IO::Socket::INET - Fails to parse h

[perl #130478] multi doesn't work with 'is native'

2017-01-02 Thread via RT
# New Ticket Created by Kaare Rasmussen # Please include the string: [perl #130478] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130478 > This works use NativeCall; constant gid_t = uint32; constant group = class :: is rep

[perl #130479] [BUG] Type coercion in signature gives warning on optional named arguments

2017-01-02 Thread via RT
# New Ticket Created by Douglas Jenkins # Please include the string: [perl #130479] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130479 > I would expect this code to ignore the conversion of $foo if no value is passed for it

Re: [perl #130460] Can we relax indir's test on the target directory?

2017-01-02 Thread brian d foy
I would expect indir to call chdir and let the exceptions fall where they may. If I indir into something I'm not allowed to do, let the exception come later. Even if I can execute that directory, it doesn't mean I can read the files in it, for instance. To me, the spirit of Perl has been "if that'

Re: [perl #130460] Can we relax indir's test on the target directory?

2017-01-02 Thread Joachim Durchholz
Am 02.01.2017 um 22:28 schrieb brian d foy: To me, the spirit of Perl has been "if that's what you want to do, here you go". I'd rather take on the burden of handling things if they blow up for things like this if it's a choice between that and not even getting to try it. Um, well, if it were p

Re: [perl #130419] |, ^, and & character class set operators aren't parseable

2017-01-02 Thread brian d foy
If it's going to be rejected, a note about why Perl 6 will not have full, basic Unicode support (Level 1) would be nice.

serial communication over usb on linux

2017-01-02 Thread Erik Colson
Hi, I'm considering to write a small IoT script in perl6. For this I need serial communication as Perl5 has Device::SerialPort. As this module has not (yet) been ported to perl6, I suppose I can achieve this with Inline-ing. But of course, Perl6 can inline a lot of languages. So: Which library

[perl #130419] |, ^, and & character class set operators aren't parseable

2017-01-02 Thread jn...@jnthn.net via RT
On Mon, 02 Jan 2017 14:15:45 -0800, alex.jakime...@gmail.com wrote: > On 2017-01-02 13:51:27, comdog wrote: > > If it's going to be rejected, a note about why Perl 6 will not have > > full, basic Unicode support (Level 1) would be nice. > > > > > I'm not sure I understand the issue here… > It doe

Re: serial communication over usb on linux

2017-01-02 Thread Elizabeth Mattijsen
> On 2 Jan 2017, at 23:49, Erik Colson wrote: > I'm considering to write a small IoT script in perl6. For this I need > serial communication as Perl5 has Device::SerialPort. As this module > has not (yet) been ported to perl6, I suppose I can achieve this with > Inline-ing. But of course, Perl6

Re: serial communication over usb on linux

2017-01-02 Thread Erik Colson
Elizabeth Mattijsen writes: > How about starting with Inline::Perl5 and “use > Device::SerialPort:from” ? I considered that solution, but had some fears.. So I figured I might be overlooking other (maybe bether) options ? About Device::SerialPort The module uses XS. Is that supported with Inl

[perl #130488] Trying to output something unrepresentable in the encoding throws X::AdHoc

2017-01-02 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #130488] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130488 > Trying to output a character unrepresentable in the specified encoding throws an X::AdHo

[perl #130460] Can we relax indir's test on the target directory?

2017-01-02 Thread Zoffix Znet via RT
On Sun, 01 Jan 2017 10:48:07 -0800, comdog wrote: > > That's because there's not a single mention of it in the 6.c Perl 6 > > Language Specification[^1] and we don't document unspecced things. > > That's contrary to my experience. For instance, > https://rt.perl.org/Ticket/Display.html?id=130419 ,

[perl #130489] spurt throws exception instead of returning failure on encoding issue

2017-01-02 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #130489] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130489 > On encoding failure, spurt throws an exception immediately instead of returning a Failur

[perl #130490] spurt throws on encoding issue, instead of returning Failure

2017-01-02 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #130490] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130490 > On encoding failure, spurt throws an exception immediately instead of returning a Failur

Re: serial communication over usb on linux

2017-01-02 Thread ToddAndMargo
On 01/02/2017 03:20 PM, Elizabeth Mattijsen wrote: Inline::Perl5 Hi Liz, Just a question on "Inline". I Perl 5, when passing arrays to a subroutine, I have to convert them to references (unless I only pass a single array and nothing else). When using "Inline", do you have to convert arrays to

Re: serial communication over usb on linux

2017-01-02 Thread Brandon Allbery
On Mon, Jan 2, 2017 at 11:11 PM, ToddAndMargo wrote: > When using "Inline", do you have to convert arrays to > references first? > Can you provide a specific example? My basic rule is "if you are calling something p5ish from p6, if it expects an arrayref you give it an array (which will be pass

Re: [perl #130460] Can we relax indir's test on the target directory?

2017-01-02 Thread Joachim Durchholz
Am 03.01.2017 um 01:48 schrieb Zoffix Znet via RT: I see support from users for having the `indir` routine, Yes, chdir is nasty because it's a global setting and you never know which of the functions you're calling might be changing the setting. indir solves all these things. (Provided it ch

Re: serial communication over usb on linux

2017-01-02 Thread H.Merijn Brand
On Tue, 03 Jan 2017 01:11:06 +0100, Erik Colson wrote: > Elizabeth Mattijsen writes: > > > How about starting with Inline::Perl5 and “use > > Device::SerialPort:from” ? > > I considered that solution, but had some fears.. So I figured I might be > overlooking other (maybe bether) options ?