Skip to content
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

IO::Spec confused by diacritics #6116

Open
p6rt opened this issue Mar 2, 2017 · 1 comment
Open

IO::Spec confused by diacritics #6116

p6rt opened this issue Mar 2, 2017 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 2, 2017

Migrated from rt.perl.org#130898 (status was 'new')

Searchable as RT130898$

@p6rt
Copy link
Author

p6rt commented Mar 2, 2017

From @zoffixznet

Trying to make RT recognize OP's text as... text... They wrote​:

$*SPEC.splitpath("foo/bar/baz").perl

("", "foo/bar/", "baz")

$*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

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant