Skip to content

Only strip trailing dots and spaces on Windows#21

Open
ElCruncharino wants to merge 1 commit into
enzo1982:masterfrom
ElCruncharino:fix-trailing-dot-stripped
Open

Only strip trailing dots and spaces on Windows#21
ElCruncharino wants to merge 1 commit into
enzo1982:masterfrom
ElCruncharino:fix-trailing-dot-stripped

Conversation

@ElCruncharino

Copy link
Copy Markdown

NormalizeFileName() stripped trailing dots and spaces from every path
component on all platforms, but that restriction only applies to
Windows filesystems. On Linux and macOS it silently mangled folder and
file names ending in a dot, e.g. "Bach J.S." became "Bach J.S".

Gate the stripping behind WIN32, matching the rest of this file's
platform-specific handling.

Closes #600, Closes #718

NormalizeFileName() removed trailing dots and spaces from every path
component on all platforms, but that restriction only applies to
Windows filesystems. On Linux and macOS it silently mangled folder
and file names ending in a dot (e.g. "Bach J.S." became "Bach J.S").
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.

1 participant