Public bug reported: On Ubuntu 24.04, with LANG=hu_HU.UTF-8, vim's own UI messages (splash screen, status line, error messages) render as mojibake instead of correct Hungarian text, e.g.:
"verzió" instead of "verzió" "MódosÃtotta" instead of "Módosította" This is a known upstream bug, already fixed: https://github.com/vim/vim/issues/13900 Fix commit: https://github.com/vim/vim/commit/4231ad085244e6d7f168d6a4e1dceb0a55dc52b3 ("translation(hu): use correct encoding in header of hu po file") The root cause: src/po/hu.po shipped with Content-Type: text/plain; charset=ISO-8859-1 even though the Hungarian text contains ő/ű, which don't exist in Latin-1 at all. The compiled .mo catalog on Ubuntu still has this incorrect header: $ msgunfmt /usr/share/vim/vim91/lang/hu/LC_MESSAGES/vim.mo | head -10 ... "Content-Type: text/plain; charset=ISO-8859-1\n" The upstream fix (charset=UTF-8) was merged in January 2024 but has not propagated into the vim-runtime package shipped with Ubuntu 24.04 LTS (vim 9.1.0016-1ubuntu7.17). Reproduction: 1. Set LANG=hu_HU.UTF-8 (with hu_HU.utf8 locale generated) 2. Open vim with no arguments, or trigger any translated message 3. Accented characters appear as UTF-8-bytes-interpreted-as-Latin-1 mojibake (e.g. "ó" instead of "ó") Workaround: set LC_MESSAGES=en_US.UTF-8 or use `:language messages en_US.UTF-8` in .vimrc to force English UI text. Expected fix: rebuild/repackage vim-runtime's hu.mo from an upstream vim source tree that includes the above commit (or cherry-pick the one-line charset correction into Ubuntu's package). ** Affects: vim (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2160605 Title: Hungarian (hu) translation .mo has wrong charset header causing mojibake To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/2160605/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
