]> git.ipfire.org Git - thirdparty/gettext.git/commit
msgunfmt: Fix msgunfmt-tcl-1 failure with tcl version 9.0 beta2.
authorBruno Haible <bruno@clisp.org>
Mon, 1 Jul 2024 11:26:43 +0000 (13:26 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 1 Jul 2024 11:37:22 +0000 (13:37 +0200)
commitcc4bb93e17dd7be6c75e419b408d8fead1710f1d
tree6f0849a0275b851991cbdc8faf5ef9efb3b84464
parent83bc47297037bc6a1b660e91434c68ef870c9d63
msgunfmt: Fix msgunfmt-tcl-1 failure with tcl version 9.0 beta2.

Reported by Jeffrey Cliff <jeffrey.cliff@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00000.html>.

* gettext-tools/src/msgunfmt.tcl: Access the ::msgcat::header variable through
an absolute name syntax, not a relative name syntax.

Rationale: <https://core.tcl-lang.org/tcl/wiki?name=Migrating+scripts+to+Tcl+9>
says:
  "In Tcl 8 variable names that are not absolute are resolved by looking
   first in the current namespace, and then in the global namespace.
   In Tcl 9 such variables are always interpreted as relative to the current
   namespace."
gettext-tools/src/msgunfmt.tcl