Repository navigation
Conversation
Normalize multibyte filenames to NFC for compatibility.
There was a problem hiding this comment.
Pull request overview
This PR updates the media upload path to normalize macOS-provided filenames from NFD (decomposed Unicode) to NFC (composed Unicode) so that downstream filename handling (including transliteration) behaves consistently across operating systems.
Changes:
- Normalize uploaded filenames to NFC using PHP Intl’s
Normalizerwhen available. - Apply normalization before size checks and transliteration filtering in the upload pipeline.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Just to share as I was unaware of this myself:
|
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
@gmontalta it might make sense to elaborate a bit on the following for ease of testing/reviews:
(I was going to review this myself just now but couldn't recall the details of how to do this.) |
Co-authored-by: Bochkarev Ivan <ivanx86@gmail.com>
@rthrash Here are the steps:
|
Normalize multibyte filenames to NFC for compatibility.
What changed and why
How to test
Related issue(s)/PR(s)
n/a
Compatibility notes
Breaking change assessment
No
Test coverage
No automated unit test
Contributors
n/a
AI tool use
Claude Code