News for hackers. Stuff that matters.
Re:What can’t the internet handle in 2022? Apostrophes by tialaramex on Tuesday October 04, 2022 @11:40AM (#33081957)
> You'll need to do a case transformation and string comparison to make this work.

Better to say you need a canonicalisation table and you will need to canonicalise the text. NTFS filesystems actually carry their canonicalisation table with them, so if you happen to be using a USB drive with an NTFS filesystem where Z and Q are just different versions of the same hypothetical "Q-Z" character, filenames ZZ150 and QQ150 are indistinguishable on that USB drive, even though your Windows PC has no trouble distinguishing Z from Q.

Notice that unlike "case transformation" this doesn't pretend we're doing something with larger semantic value, and indeed the actual names on disk aren't promised to be Unicode text under NTFS, they're just arbitrary 16-bit values which probably make sense as UCS-2 or these days UTF-16 when rendered, the tables just convert some values into others.

Re:What can’t the internet handle in 2022? Apostrophes by throwaway09223 on Tuesday October 04, 2022 @11:47AM (#33082095)
Do you understand that filesystem drivers are yet another example of places where software developers need to do these types of operations which you're dismissing as "very strange things?"

How do you propose that I, a person who among other things develops filesystems, implement a canonicalization table without doing these "very strange things?"

Furthermore, filesystem operations are not limited to calls into the filesystem driver. Programs often need to deal with paths outside of filesystem calls: The names of files need to be displayed on screens. They need to be indexed in databases and searched for. They need to be encapsulated within other protocols and data formats and often need to be parsed and understood.

You are essentially agreeing with me that these are normal, necessary things. Your position appears to be "someone else does that type of thing for me," which is not a very compelling argument.

Re:What can’t the internet handle in 2022? Apostrophes by GoblinSlayer on Tuesday October 04, 2022 @01:18PM (#33083516)
Case insensitive file systems might as well be a historic accident, because lower case letters didn't always exist and then it was kept for backward compatibility.
Re:What can’t the internet handle in 2022? Apostrophes by throwaway09223 on Tuesday October 04, 2022 @05:28PM (#33087227)
Case insensitive functions are common. Filesystems are just one of many places where this kind of function is expected.

It's just a particularly common canonicalization function. Canonicalization is a common need across all languages as we've already clearly established.