Skip Menu |
Report information
Id: 130898
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at]

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

Date: Thu, 2 Mar 2017 07:51:37 +0000
From: Zefram <zefram [...]>
To: rakudobug [...]
Subject: [BUG] IO::Spec confused by diacritics
Download (untitled)
application/octet-stream 539b

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 608b
Trying to make RT recognize OP's text as... text... They wrote: Show quoted text
> $*SPEC.splitpath("foo/bar/baz").perl
("", "foo/bar/", "baz") Show quoted text
> $*SPEC.splitpath("foo/bar/\x[308]baz").perl
("", "foo/", "bar/Ìbaz") The latter pathname, if actually used for I/O, unsurprisingly functions as a three-element pathname, just like the first one, based on the octets of its UTF-8 representation. splitpath fails to recognise the second directory separator, because it's working in the grapheme world. It needs to use the octet view. There are obvious security implications in failing to correctly parse pathnames. -zefram

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

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