Project

General

Profile

Actions

Bug #3393

open

(libc) catopen(3): align returned errors with IEEE Std 1003.1™-2024

Added by pmjdebruijn about 1 month ago. Updated 14 days ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Userland
Target version:
Start date:
01/22/2026
Due date:
% Done:

0%

Estimated time:

Description

Ref: https://reviews.freebsd.org/D47413

  • Invalid/non-existent/unable to use message catalog file should result in ENOENT, and not in EFTYPE.
  • Added detection of several cases of wrong file format due to length [*].
  • Update man page.

Patch: https://cgit.freebsd.org/src/patch/lib/libc/nls/msgcat.c?id=1176390d2d2bbb1e207c840d1f7a66a6ac1096ff (patch (with fuzz) applies and compiles)

There are some other "upstream changes" to the nls code as well, so cherry-picking this patch vs syncing the nls codebase is a tradeoff probably worth considering...

Actions #1

Updated by pmjdebruijn 14 days ago

I'm running into an odd issue with catgets/catopen, where I wonder if something like this might still be an issue in DragonFly:

https://cgit.freebsd.org/src/commit/lib/libc/nls?h=stable/15&id=4188ba1a3b65b4a55fc938b71d9091fafb57967d

Actions

Also available in: Atom PDF