• A
    locale: ensure dcngettext() preserves errno · 8d829717
    A. Wilcox 提交于
    Some packages call gettext to format a message to be sent to perror.
    If the currently set user locale points to a non-existent .mo file,
    open via __map_file in dcngettext will set errno to ENOENT.
    
    Maintainer's notes: Non-modification of errno is a documented part of
    the interface contract for the GNU version of this function and likely
    other versions. The issue being fixed here seems to be a regression
    from commit 1b52863e, which enabled
    setting of errno from __map_file.
    8d829717
dcngettext.c 6.0 KB