Skip to content

Long filename contains unicode characters with by-file truncates error #214

@lingsamuel

Description

@lingsamuel

Describe the bug
Long filename contains unicode characters with by-file truncated incorrectly.

To Reproduce

touch "ббббббббббббббббббббббббббббббббб.md"
touch "ѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬ.md"
touch "中文中文中文中文中文中文中文中文中文中文中文中文中文中文中文中文.md"
scc --by-file

Output:

image

Expected behavior
�� shouldn't appear, indent should works properly.

Desktop (please complete the following information):

  • OS: Linux 5.9.9-arch1-1 (Arch Linux)
  • scc version 2.13.0, make from source

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions