Skip to content

FileFilter{}s are case-sensitive #8

Answered by ncruces
SolarLune asked this question in Q&A
Discussion options

You must be logged in to vote

Latest version adds "support" for character classes to all platforms.

This means you can use the pattern *.[Tt][Tt][Ff] portably across all platforms:

  • on Linux *.[Tt][Tt][Ff] is a case-insensitive match for files with a TTF extension;
  • on Windows it becomes *.TTF, which does the same;
  • on macOS it becomes TTF, same effect.

I did not add a non-default case-insensitive option to Linux. Making unicode character classes case-insensitive would be error prone, and a source of probable bugs. I'd like to keep those at a minimum.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ncruces
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants