TIL that KDE has a killer feature which will silently replace a /
with a ⁄
(fraction slash) when you go Right Click -> Create New -> Text file...
// See https://api.kde.org/frameworks/kio/html/global_8cpp_source.html#l00141
KIOCORE_EXPORT QString KIO::encodeFileName(const QString &_str)
{
QString str(_str);
str.replace(QLatin1Char('/'), QChar(0x2044)); // "Fraction slash"
return str;
}
...which of course is super hard to spot and cost our new junior dev the whole day, trying to figure out why his code wasn't finding his test⁄test.txt
in Azure's blob storage.