[PATCH v2 2/2] assert: Remove the use of %n from __assert_fail_base (BZ #32456)
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Dec 30 20:00:51 GMT 2024
On 30/12/24 16:55, Florian Weimer wrote:
> * Adhemerval Zanella:
>
>> diff --git a/po/libc.pot b/po/libc.pot
>> index d66bd04122..c8193f53c7 100644
>> --- a/po/libc.pot
>> +++ b/po/libc.pot
>> @@ -6,7 +6,7 @@
>> msgid ""
>> msgstr ""
>> "Project-Id-Version: libc 2.40.9000\n"
>> -"POT-Creation-Date: 2024-12-30 16:29-0300\n"
>> +"POT-Creation-Date: 2024-12-30 16:34-0300\n"
>> "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
>> "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
>> "Language-Team: LANGUAGE <LL@li.org>\n"
>> @@ -102,16 +102,12 @@ msgstr ""
>>
>> #: assert/assert-perr.c:35
>> #, c-format
>> -msgid ""
>> -"%s%s%s:%u: %s%sUnexpected error: %s.\n"
>> -"%n"
>> +msgid "%s%s%s:%u: %s%sUnexpected error: %s.\n"
>> msgstr ""
>>
>> -#: assert/assert.c:132
>> +#: assert/assert.c:125
>> #, c-format
>> -msgid ""
>> -"%s%s%s:%u: %s%sAssertion `%s' failed.\n"
>> -"%n"
>> +msgid "%s%s%s:%u: %s%sAssertion `%s' failed.\n"
>> msgstr ""
>>
>> #: catgets/gencat.c:111
>
> I would have expect po/*.po file updates, too.
These are from translation teams and current instruction is to not change
it locally [1].
[1] https://sourceware.org/glibc/wiki/Regeneration
>
> Hmm, maybe I'm wrong, though, and there won't be any crashes, just
> missing translations. And if no one notices, we could remove gettext
> from assert in glibc 2.42. 8-)
That's my understanding, without a translation the _(...) just return
the input string.
>
> Thanks,
> Florian
>
More information about the Libc-alpha
mailing list