Skip to content

CharUnicodeInfo.GetUnicodeCategory reports wrong categories #2013

@drauch

Description

@drauch

The character 0x1C90 represents the GEORGIAN MTAVRULI CAPITAL LETTER AN and is according to the official Unicode documentation part of the general category Lu ("Letter, uppercase").

This is the entry from the official Unicode 11.0 database:

1C90;GEORGIAN MTAVRULI CAPITAL LETTER AN;Lu;0;L;;;;;N;;;;10D0;

However, the following .NET code:

char.GetUnicodeCategory('\x1C90')
// or
CharUnicodeInfo.GetUnicodeCategory('\x1C90')

both return UnicodeCategory.OtherNotAssigned for some reason.

What is the problem here? Do I have to install some specific .NET language pack so that the Unicode category is reported correctly? Is this a bug in the .NET Framework? I've tested it with up-to-date versions of the .NET Framework and .NET Core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions