.`gettext` returns untranslated text even when out of memory
Previously, the `gettext()` function for text localization returned the NULL value instead of text when out of memory, resulting in applications lacking text output or labels. The bug has been fixed and now, `gettext()` - returns untranslated text when out of memory as expected.
In Red Hat Enterprise Linux 8, gettext may erroneously return NULL on an internal memory allocation failure. The expectation is that it returns an untranslated string instead.
Upstream fix:
commit 8c1aafc1f34d090a5b41dc527c33e8687f6a1287
Author: Florian Weimer <fweimer>
Date: Fri Dec 21 16:08:55 2018 +0100
intl: Do not return NULL on asprintf failure in gettext [BZ #24018]
Fixes commit 9695dd0c9309712ed8e9c17a7040fe7af347f2dc ("DCIGETTEXT:
Use getcwd, asprintf to construct absolute pathname").
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2019:3513
In Red Hat Enterprise Linux 8, gettext may erroneously return NULL on an internal memory allocation failure. The expectation is that it returns an untranslated string instead. Upstream fix: commit 8c1aafc1f34d090a5b41dc527c33e8687f6a1287 Author: Florian Weimer <fweimer> Date: Fri Dec 21 16:08:55 2018 +0100 intl: Do not return NULL on asprintf failure in gettext [BZ #24018] Fixes commit 9695dd0c9309712ed8e9c17a7040fe7af347f2dc ("DCIGETTEXT: Use getcwd, asprintf to construct absolute pathname").