[vim/vim] Changing 'isprint' breaks drawing of unrelated Unicode characters (Issue #21053)

Emilien Breton (Vim Github Repository) <[email protected]>
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/issues/[email protected]>
Bricktech2000 created an issue (vim/vim#21053)

### Steps to reproduce

`vim -u NONE -i NONE` then insert U+222B INTEGRAL into the buffer (`i<c-v>u222b<esc>`). Now run `:se isp+=^226` and the integral character turns into a less-than sign. `:se isp&` and the integral is back.

With a number other than 226 the integral looks fine. The UTF-8 encoding of U+222B is `e2 88 ab`, and 226 is decimal for hex `e2`. It's almost like one part of Vim only looks at the first UTF-8 byte and thinks the character is non-printable and tries to display `<222b>` while another part of Vim correctly considers it printable and only allots one cell for the character and truncates `<222b>` to `<`.

### Version of Vim

9.1.1566

### Environment

NixOS 25.05, 'encoding' is UTF-8

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/issues/21053
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/issues/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/21053%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.