'\a' and '\r' escape sequence in internationalized messages
From:
Rafael Fontenelle
Subject:
'\a' and '\r' escape sequence in internationalized messages
Date:
Tue, 3 Jun 2025 15:12:47 -0300
Hi all,
msgcat from GNU Gettext package complains of the existence of '\a' and
'\r' in the message catalogs (a.k.a PO files) as part of the source
messages.
Running msgcat against the Brazilian Portuguese message catalog
downloaded from TranslationProject.org:
----
$ msgcat bash-5.3-rc2.pt_BR.po > /dev/null
bash-5.3-rc2.pt_BR.po:1040: warning: internationalized messages should
not contain the '\a' escape sequence
...
bash-5.3-rc2.pt_BR.po:1383: warning: internationalized messages should
not contain the '\r' escape sequence
...
----
The above lines are shown 3 times each, but I stripped the duplicates.
These are about strings from eval.c line 260 and lib/malloc/malloc.c
line 375, as can be seen in the source messages from the catalog
messages:
#: eval.c:260
msgid "\atimed out waiting for input: auto-logout\n"
msgstr ""
#: lib/malloc/malloc.c:375
#, c-format
msgid ""
"\r\n"
"malloc: %s:%d: assertion botched\r\n"
msgstr ""