Extra characters problem

58 views
Skip to first unread message

Reza ISSANY

unread,
Jul 7, 2025, 6:37:31 PMJul 7
to iterm2-discuss
Hello,

I have a problem with cli. Extra characters is added like the screenshot below:

Capture d’écran 2025-07-07 à 07.53.24.png

A second "s" is added but it is not a problem to execute the command.
If I try to remove this character, the space between the command and the argument is removed and the command fails.

I have this issue with a lot of commands (kubectl -> kubectll, etc.).
I can't find how to solve this issue !!

Version of iterm2: Build 3.5.14
Oh My Zsh version: master (95ef251)
Configured with: p10k and MesloLGS NF Fonts

Any idea please ?

George Nachman

unread,
Jul 8, 2025, 1:39:55 AMJul 8
to iterm2-...@googlegroups.com
This kind of problem is often a mismatch between the width of a symbol in iTerm2 versus the program that’s drawing it. I haven’t seen that penguin before, so it the most likely culprit. If you select it and right click it will show the code point like this:



Let me know what number that is (i.e., the value in place of U+1f495).

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/iterm2-discuss/be815079-57d7-4aa0-abc2-adf9d8c39d74n%40googlegroups.com.


Richard Mitchell

unread,
Jul 8, 2025, 6:58:39 AMJul 8
to iterm2-discuss
I have seen something similar but the issue was with zsh/omz/plugins.
I don't remember the fix, so this is of no help other than the issue "might" not be in iterm2.

Reza ISSANY

unread,
Jul 9, 2025, 10:56:01 PMJul 9
to iterm2-...@googlegroups.com
Hello,

image.png

I've tried to put the original pic (apple) without success :'( Is there a cache to clean maybe ?

The p10k config is:
typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION=$'\uF17C'


George Nachman

unread,
Jul 20, 2025, 2:07:32 PMJul 20
to iterm2-...@googlegroups.com
Since that is a private use code point it is treated as regular width. The only way I could reproduce it was by turning on “Ambiguous characters are double-width”. If you happen to have that enabled you should probably turn it off; it is only useful in some very rare cases. You can confirm the hypothesis that it’s taking two cells by running:

printf '\uF17cx\n012\n’

If the “x” aligns with the 2, then u+f17c is taking two cells. It should align with the 1.

That should print [pengin][x]. Compare it to an adjacent

Reza ISSANY

unread,
Jul 24, 2025, 5:13:59 PMJul 24
to iterm2-...@googlegroups.com
Hello,

The printf command returns

image.png

I've tried to remove the penguin and let iterm put the default OS icon (apple). I still have the problem:
image.png

>>> double k ...

This is the text profile. Ambiguous is unchecked.

image.png


Capture d’écran 2025-07-07 à 07.53.24.png

George Nachman

unread,
Jul 24, 2025, 6:16:43 PMJul 24
to iterm2-...@googlegroups.com
I’m not quite sure why it’s getting confused. Make sure your $LANG environment variable is UTF-8, like en_US.UTF-8. It probably is considering this works at all. I would then try replacing the apple, > and house with plain ascii characters if you are able to see if that makes any difference. The goal would be to get this down to the simplest possible case that reproduces the bug.

Reza ISSANY

unread,
Jul 25, 2025, 11:42:09 PMJul 25
to iterm2-...@googlegroups.com
Hello,

The lang variable is set correctly:

echo $LANG
fr_FR.UTF-8

Yesterday, I attempted to create a new p10k configuration, and since then, I haven't encountered any issues. I'll hold off on declaring my problem fully resolved for a little while longer. :crossfinger:

Reza ISSANY

unread,
Aug 5, 2025, 3:55:50 PMAug 5
to iterm2-...@googlegroups.com
Hello,

No more prob since a remake a new p10k configure ... I compared the result file and it looks like to be the same as the old one ...
Reply all
Reply to author
Forward
0 new messages