[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66624] xgettext, msgcat, msgfmt, etc. should support strings with
From: |
Bruno Haible |
Subject: |
[bug #66624] xgettext, msgcat, msgfmt, etc. should support strings with embedded NUL characters |
Date: |
Wed, 8 Jan 2025 19:28:01 -0500 (EST) |
Follow-up Comment #1, bug #66624 (group gettext):
There are two problems:
1) The NUL bytes are currently used for the implementation of plurals (both in
the msgid and msgstr parts of a message).
2) In libintl, the __hash_string function stops at the first NUL. Therefore
the table with the hash codes is not compatible with a lookup that would take
the entire string as key.
In order to fix these problems, redesign of the plurals mechanism would be
needed, and most likely also a new major version of .mo files — which could
be hard to push into glibc.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66624>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [bug #66624] xgettext, msgcat, msgfmt, etc. should support strings with embedded NUL characters,
Bruno Haible <=