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

Illegal byte sequence error when typing æ ø å #222

Open
3 tasks done
Napam opened this issue Jun 15, 2023 · 2 comments
Open
3 tasks done

Illegal byte sequence error when typing æ ø å #222

Napam opened this issue Jun 15, 2023 · 2 comments

Comments

@Napam
Copy link

Napam commented Jun 15, 2023

General information

  • Terminal program: kitty, macos terminal (tried with and without tmux)
  • Operating system: macOS Ventura 13.4
  • ZSH framework: oh-my-zsh
  • ZSH version: 5.9
  • ZVM version: commit c4fc3a6 (a little newer than v0.9.0)

Basic examination

  • I have read through the README page
  • I have the latest version of zsh-vi-mode
  • I have tested with another terminal program

Problem description

I have a norwegian keyboard, which has the æ ø å keys. When I press any of them I get the following error:

zvm_update_repeat_commands:18: regex matching error: illegal byte sequence

Reproduction steps

  1. Type any of the æ ø å characters

Expected behavior

Should be no error popping up

@Napam
Copy link
Author

Napam commented Jun 21, 2023

For some unrelated reasons I stopped installing this through oh-my-zsh, and did a manual installation instead. That happened to fix the problem.

@Napam Napam closed this as completed Jun 21, 2023
@Napam
Copy link
Author

Napam commented May 6, 2024

Unfortunately the problem appeared again 😢 I have just cloned this repo and I just source it from my zshrc.

My setup:
kitty 0.28.1
macOS Sonoma 14.4.1 (M2 Pro CPU)
zsh 5.9 (x86_64-apple-darwin23.0)
commit hash: 287efa1


So after digging a testing a little bit I have observed the following:

  1. When using omz, the æ ø å stuff worked if I just sourced the zvm
  2. Without using omz, æ ø å stuff doesn't work (even though I didn't run it through omz to start with)

After searching about the error I saw that people recommended to do export LANG=C, but the problem then was that the rest of the shell behaved weird. Anyways I tried reverting back to the the setup that worked (with omz) and tried to type locale, and I get the same results with and without omz:

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

So I guess there some settings that omz does that just makes this work, but I can't figure out what it is.

@Napam Napam reopened this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant