Skip to content

fix(raw): use std::generic_category() instead of strerror_r - #5637

Merged
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
jinhgkim:strerror
Oct 30, 2026
Merged

lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
jinhgkim:strerror

Conversation

@jinhgkim

Copy link
Copy Markdown
Collaborator

Fixes #5636.

strerror_r is POSIX only, so the raw plugin fails to build on Windows. Windows CI didn't catch this because it doesn't install LibRaw, so the raw plugin is never compiled there. Use std::generic_category().message() instead, which works everywhere.

Assisted-by: Claude Code / Claude Opus 5.5

strerror_r is POSIX only, so the raw plugin fails to build on Windows.
Windows CI didn't catch this because it doesn't install LibRaw, so the
raw plugin is never compiled there. Use std::generic_category().message()
instead, which works everywhere.

Assisted-by: Claude Code / Claude Opus 5.5

Signed-off-by: Jinnie Kim <jinhgkim@gmail.com>
@lgritz

lgritz commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

How did it work in our CI?

@lgritz

lgritz commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Oh, I see, no libraw, so this didn't need to build. Got it.

@lgritz
lgritz merged commit 0008a6f into AcademySoftwareFoundation:main Oct 30, 2026
56 of 58 checks passed
@jinhgkim
jinhgkim deleted the strerror branch October 30, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FTBFS on MinGW for new v3.2.2.0

2 participants