Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 characters get garbled after formatting #1390

Closed
yowcow opened this issue Oct 18, 2022 · 1 comment
Closed

UTF-8 characters get garbled after formatting #1390

yowcow opened this issue Oct 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@yowcow
Copy link

yowcow commented Oct 18, 2022

Describe the bug
UTF-8 characters get garbled after formatting.

To Reproduce
Have a piece of unformatted code and/or comment that includes multibyte UTF-8 characters, then trigger code formatting.

E.g.

                    %% コメント
    _ = <<
          "こんにちは"/utf8
        >>,

Expected behavior
Get a clean piece of code.

E.g.

    %% コメント
    _ = <<"こんにちは"/utf8>>,

Actual behavior
Get a garbled piece of code.

E.g.

    %% ã<82>³ã<83>¡ã<83>³ã<83><88>
    _ = <<"ã<81><93>ã<82><93>ã<81>«ã<81>¡ã<81>¯"/utf8>>,

Context

  • erlang_ls version (tag/sha): Version: 0.44.1 (ref: b151f9d9a4a1dde1118ae2822226500e2fa69125)
  • Editor used: neovim v0.8.0
  • LSP client used: Nvim LSP client

This patch resolves the problem: main...yowcow:erlang_ls:fix-garbled-utf8-characters

@yowcow yowcow added the bug Something isn't working label Oct 18, 2022
@plux
Copy link
Contributor

plux commented Apr 24, 2024

Fixed by #1496

@plux plux closed this as completed Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants