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

Case sensitivity #1028

Open
UKTailwind opened this issue Oct 1, 2024 · 2 comments
Open

Case sensitivity #1028

UKTailwind opened this issue Oct 1, 2024 · 2 comments

Comments

@UKTailwind
Copy link

Is there anyway to turn off case sensitivity for filenames? I'm running code with LittleFS on the flash "disk" and FatFS on the SDcard. FatFS is not case sensitive and the differencemakes it confusing for users

@geky
Copy link
Member

geky commented Oct 2, 2024

Hi @UKTailwind, thanks for creating an issue.

The problem is you don't really "turn off" case sensitivity. Case sensitivity is just comparing bytes, while case insensitivity is a bit more complicated (much more complicated if you want to support unicode).

I realize this is opinion territory, but I think we really need to move away from case insensitivity in filesystems. Case sensitivity is the norm in POSIX/Linux, and I've used Windows enough to know case insensitivity can cause some really weird problems for applications.

That being said, one way you could emulate case insensitivity is by mapping everything to lower case (or upper case), and store the "display name" as a custom attribute. I think this would cover the use case.

@geky
Copy link
Member

geky commented Oct 2, 2024

Alternatively, consider only providing your application for languages without letter casing, such as Chinese or Korean. This avoids the problem entirely. (joking)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants