Skip to content

[wasm][hybridglobalization] ToUpper/ToLower does not work correctly when the length of character changes #86794

Closed

Description

@ilonatommy

Description

For some chars, e.g. "ß" the lenght changes when we change its case -> "SS".

Reproduction Steps

using System;
using System.Globalization;

public class Program
{
public static void Main()
{
Console.WriteLine("Straße".ToUpper(new CultureInfo("de-DE")));
Console.WriteLine("Straße".ToUpperInvariant());
}
}

Expected behavior

The most correct behavior would be to return:

STRASSE
STRASSE
```

However, in non-hybrid it returns:
```
STRAßE
STRAßE
```
so we should align with the non-hybrid.

### Actual behavior

```
STRAße
STRAße
```

### Regression?

_No response_

### Known Workarounds

_No response_

### Configuration

_No response_

### Other information

_No response_

Activity

  1. self-assigned this
    on May 26, 2023
  2. ghost added
    untriaged
    on May 26, 2023
  3. ghost added
    in-pr
    on May 26, 2023
  4. added this to the 8.0.0 milestone on May 26, 2023
  5. ghost removed
    untriaged
    on May 26, 2023
  6. ghost removed
    in-pr
    on May 30, 2023
  7. ghost locked as resolved and limited conversation to collaborators on Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-System.Globalization

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions