Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
MSC2265: Proposal for mandating lowercasing when processing e-mail address localparts #2265
Team member @anoadragon453 has proposed to merge this. The next step is review by the rest of the tagged people:
No concerns currently listed.
Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!
See this document for info about what commands tagged team members can give me.
richvdh left a comment
So some questions on this of the sort that arise whenever case mapping comes up:
Are you sure that lower-casing, as opposed to casefolding, is the right thing to do? Examples of the difference:
Relatedly: should we consider unicode normalisation, so that (for example) 'ê' (U+00EA, e with circumflex) is treated the same as 'ê' (U+0065 U+0302, e followed by circumflex combining character)?
Neither of the above solve the 'French problem' where (traditionally) accents are omitted on upper-case characters, so 'COTE' should be equivalent to 'côté'...
I guess it depends on whether common email providers treat both characters as the same. I'll do some investigation around that.
Should it, though, keeping in mind we're only looking at email addresses here? I just checked on both Gmail and Hotmail and neither of them consider
Otherwise, yes, casefold is probably the way to go, I'll update the proposal to reflect that.