Skip to content

[Bug]: UTF-8 multi-byte characters rendered incorrectly in error output #478

@magic-akari

Description

@magic-akari

System Info

Need to install the following packages:
envinfo@7.21.0
Ok to proceed? (y)

System:
OS: macOS 26.3
CPU: (10) arm64 Apple M2 Pro
Memory: 1.78 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.12.0 - /Users/akari/.proto/tools/node/24.12.0/bin/node
Yarn: 4.10.3 - /Users/akari/.proto/shims/yarn
npm: 11.6.2 - /Users/akari/.proto/tools/node/24.12.0/bin/npm
pnpm: 10.17.1 - /Users/akari/.proto/shims/pnpm
bun: 1.3.3 - /Users/akari/.bun/bin/bun
Deno: 2.6.4 - /Users/akari/.proto/shims/deno
Browsers:
Chrome: 145.0.7632.76
Firefox: 145.0.1
Safari: 26.3
npmPackages:
@rslint/core: 0.2.1 => 0.2.1

Details

When linting files containing Unicode characters (e.g., Chinese comments), the diagnostic output displays garbled characters (�) in the code frame.

Reproduce link

No response

Reproduce Steps

// 未使用的变量
const unused = 42;
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions