[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: |
Tue, 31 Dec 2024 16:00:46 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?66624>
Summary: xgettext, msgcat, msgfmt, etc. should support
strings with embedded NUL characters
Group: GNU gettext
Submitter: haible
Submitted: Tue 31 Dec 2024 10:00:42 PM CET
Category: Programmer tools
Severity: 1 - Wish
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 31 Dec 2024 10:00:42 PM CET By: Bruno Haible <haible>
The tools xgettext, msgcat, msgfmt, etc. currently don't support embedded NUL
characters, because they are coded in C with the usual 'char *' type for
strings.
But in most programming languages, extracted strings can contain NUL
characters (just like other control characters). This is the case for C (with
string types such as string_desc_t from gnulib), in C++ (with std::string), in
Python, Lisp, Scheme, Smalltalk, Java, C#, Perl, PHP, Ruby, Lua, JavaScript,
D, Go, Rust.
The tools should support such extracted strings, and the unit tests should
verify the support.
As documented in
https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html : "Nothing
prevents a MO file from having embedded NULs in strings."
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66624>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #66624] xgettext, msgcat, msgfmt, etc. should support strings with embedded NUL characters,
Bruno Haible <=