-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Can we fix toLower/toUpper? #3264
Comments
To check this, I:
And seemingly this doesn't not solve our situation? Or perhaps I am misinterpreting. |
I am quite surprised it didn't work - the comments seemed to indicate a high degree of confidence that it would. But you are indeed testing the right thing afaict. |
I was surprised too. Maybe it's worth mentioning in the other thread? Maybe it's specific to .NET 6? |
For sure! |
I have a draft and would appreciate some feedback on the below, @pbiggar - still finding myself a bit lost here! I'm attempting to use the provided gist to resolve the same (or seemingly such) issue of surprising Namely, we're hoping to find a solution that will I've copied the code into a new .net6 project, only to find that they're not working the same as noted in the linked comment. My solution may be found here: https://github.com/StachuDotNet/StringCasingFix This is a bit tangential, so hope I'm not distracting much, but was wondering if I'm missing something - should I expect this to work? Has something changed, perhaps related to .NET versions? |
Here's what I'd write: I tried the gist in .NET 6 and found that strings "և" and "fifl" did not convert to upper case properly (I was expecting "ԵՒ" and "FIFL", respectively). Here's a repo that replicates the issue. Should I expect this to work? And maybe tag tarekgh. That said.. This isn't the exact same input than they were discussing, right? So there's two potential issues:
So it may be worth establishing which of these is the case, as that might help us to ask a better question and get a better response. |
Hm. Their example of So, either this is an environment thing [my OS + .NET version + ???], or the gist and that comment aren't in sync, and I/we were mistakenly assuming they were. |
FWIW, on .net core 3.1, I get the same results:
I could set up .NET on my Windows machine and try there to rule out OS? Seems somewhat overkill, though, and now just thinking the gist doesn't match what we're looking for. |
Yeah. Maybe let them know and we can move on if they don't respond. |
We got a response dotnet/runtime#30960 (comment) |
Whoops! What should we do here then? Close this issue? |
I've scoured the internet the best I can to find another solution here, but haven't found anything. |
Makes sense, thanks! |
Should this be closed in favor of #3437? (or the other way around) |
The .NET toUpper/toLower do not handle some unicode issues as well as the OCaml code. I believe .NET handles "simple" Case Mapping, but not "full" Case Mapping.
This comment describes what I know.
It appears that someone wrote some code that might solve this: dotnet/runtime#30960 (comment) (links to https://gist.github.com/tarekgh/de1a1b29b03d048ad580c0a338c44fbb). We should determine if this solves it, and if so, incorporate it in
String::toUpper
andString::toLower
The text was updated successfully, but these errors were encountered: