Skip to content

Conversation

@ej-sanmartin
Copy link
Contributor

Description

Root cause was a bug in the internal SDL_SYS_EnumerateDirectory implementation which overtrimmed, leading to paths like / being read as empty and /. being read as /

This bug effected Linux and Mac and a similar pattern was found in the Window's codepath for this implementation but there seems to be some fallback logic there for empty strings. Nonetheless, fixed overtrimming there as well.

Existing Issue(s)

Fixes #14637

@slouken slouken merged commit 09a2283 into libsdl-org:main Dec 16, 2025
43 checks passed
@slouken slouken added this to the 3.4.0 milestone Dec 16, 2025
@slouken
Copy link
Collaborator

slouken commented Dec 16, 2025

Merged, thanks!

@slouken slouken modified the milestones: 3.4.0, 3.2.30 Dec 16, 2025
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.

SDL_EnumerateDirectory fails with "/"

2 participants