Skip to content

TODO: Constexpr UTF-8 character counting #1

Description

@rail5

Help strings are compile-time generated and aligned to 80-character lines based on ASCII char count (byte counts).

If non-ASCII UTF-8 characters are included in the help string descriptions, the alignment won't be exactly right -- it'll never exceed 80 characters, but UTF-8 continuation bytes will be counted as independent characters and the lines will be limited to less than 80 characters.

This matters particularly for help strings in languages other than English.

Also check: how does (or doesn't) GNU getopt handle UTF8 longopts?

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions