Problems? Is your data what you think it is? | |
PerlMonks |
Re: Curious about why some characters cause issues with mkdir/printby ikegami (Patriarch) |
on Mar 19, 2018 at 17:50 UTC ( [id://1211253]=note: print w/replies, xml ) | Need Help?? |
Perl operators that deal with paths suffer from The Unicode Bug. The path actually used is provided by the following sub:
That means that if you have encoded bytes in an upgraded string, Perl will get it wrong.
It's virtually impossible to get into that situation without a bug in your code because the encoding functions always return a downgraded string. You've already identified the solution:
In Section
Seekers of Perl Wisdom
|
|