[vim/vim] MS-Windows: ":language messages" only works once (PR #20862)

2 views
Skip to first unread message

h_east

unread,
11:48 AM (9 hours ago) 11:48 AM
to vim/vim, Subscribed
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

  • b38692c MS-Windows: ":language messages" only works once

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20862@github.com>

Christian Brabandt

unread,
1:54 PM (7 hours ago) 1:54 PM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20862)

thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20862/c5107768883@github.com>

Reply all
Reply to author
Forward
0 new messages