Skip to content

Output layout is broken in CJK environment #36

@lo48576

Description

@lo48576

Some kinds of characters (including ruled lines, ×, and ) have east asian (ambiguous width) characters, so they have single width in some environments, and double width in some environments.
In area where such characters have double width (mainly east asia), output layout of current hexyl (v0.3.1) is broken.

screenshot-2019-01-12-205304 0900

There are some way to fix this:

  • Know line characters width (by wcwidth, CLI options, or something), and use appropriate number of line characters.
    • However this won't solve ×, and issue.
  • Or, use only ASCII characters when user wanted.
  • Or, make symbols configurable (through config file or CLI options?)

If those characters are made configurable, #17 will be solved at the same time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions