Skip to content

Unicode blocks in pattern not recognized #2507

Closed

Description

@manoe

libyang supports patterns that further restrict a string leaf's set of values. The YANG RFC [1] allows the use of Unicode blocks [2] in patterns (e.g. Basic Latin, Cyrillic). libyang, due to a coding error, interprets every Unicode block pattern as Latin-1 Supplement, if multiple Unicode blocks are present in the same pattern. In the corresponding code, the variable responsible to store the Unicode block information, gets overwritten.

[1] https://datatracker.ietf.org/doc/html/rfc6020
[2] https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#dt-ccesblock

Activity

  1. manoe commented on Apr 7, 2026

    @manoe
    ContributorAuthor

    Corresponding correction PR available at:
    #2508

  2. added a commit that references this issue on Apr 7, 2026
    0f6c94b
  3. michalvasko commented on Apr 7, 2026

    @michalvasko
    Member

    Fixed by your PR.

  4. added
    is:bugBug description.
    status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)
    on Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugBug description.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions