[vim/vim] MS-Windows: ":language messages" only works once (PR #20862)
h_east (Vim Github Repository) <[email protected]> Tue, 28 Jul 2026 08:48:04 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/pull/[email protected]> |
```
Problem: On MS-Windows ":language messages" has no effect once messages
have been translated, the previous language keeps being used.
Solution: Make gettext drop the translations it cached.
```
related: #18622
That report is mainly about the 32-bit build, which is a different problem.
The "only some messages change language" part of it is what this fixes.
No test is added: gettext() with a domain argument calls textdomain(), which
increments _nl_msg_cat_cntr by itself, so test_gettext_utf8.vim passes even
without this fix although it does switch the message language twice. Testing
this without a domain argument would need a catalog for the VIMPACKAGE domain,
which bindtextdomain() refuses.
You can view, comment on, or merge this pull request online at:
https://github.com/vim/vim/pull/20862
-- Commit Summary --
* MS-Windows: ":language messages" only works once
-- File Changes --
M src/locale.c (4)
M src/os_win32.c (7)
M src/vim.h (1)
-- Patch Links --
https://github.com/vim/vim/pull/20862.patch
https://github.com/vim/vim/pull/20862.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20862
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/pull/[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/pull/20862%40github.com.