-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Umlauts in static filenames fail to sync/serve with "hugo server" on macOS #4853
Comments
Hi @danst0, Which OS are you using? Is it macOS? |
If you are indeed running macOS, please check whether your filesystem is HFS+ or the newer APFS, and share with us here. Also, please tell us whether you are testing locally with The reason I am asking is that macOS uses Unicode Normalization Form D (NFD) whereas the rest of the world uses Normalization Form C (NFC) for filenames. Or maybe it was just macOS HFS+; the new APFS does not normalize to NFD any more. In that case, things become slightly more complicated, and I wonder if Hugo and/or https://github.com/spf13/afero needs to do anything special... Anyhow, here is a relevant somewhat reading list:
Update by Michael Tsai on 2017-06-27:
|
Thanks for the quick reply! I am using MacOS and APFS; Hugo runs as "hugo server". , which gives me a 404 Furthermore.
under: |
Hi @danst0, Please try |
Thanks! renderToDisk did the trick! Now it supports the umlauts properly. Still weird behavior. Daniel |
Thank you for your testing and feedback! It looks like Issue #2203 all over again, which was supposedly fixed back in 2016. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
I attempted to reproduce this error on a mac running Mojave and APFS, but I was unable to. I think I might be using bad test data, as I named the file ä.jpg right on the command line. @danst0 could you please point me to an already-named file online I could test with? I have a hypothesis for what the problem might be, but I want to make sure I can reproduce the issue before exploring it further. |
As it turns out, today I was able to reproduce by downloading https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Per_Krafft_d_%C3%A4%3B_Portr%C3%A4tt_av_Carl_Christoffer_Gj%C3%B6rwell_d_%C3%A4.jpg/525px-Per_Krafft_d_%C3%A4%3B_Portr%C3%A4tt_av_Carl_Christoffer_Gj%C3%B6rwell_d_%C3%A4.jpg directly from Chrome into my static dir, as opposed to using |
This is still an issue, this time in Windows. https://discourse.gohugo.io/t/gitinfo-fails-if-there-is-an-umlaut-in-the-folder-path/32746 |
Cannot reproduce on macOS 13.3.1 (APFS). See https://discourse.gohugo.io/t/44336
That is a separate issue, #9810. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
I have two files in my static files directory 00a.png and 00ä.png. For the 00ä.png file I get a 404. The 00a.png file is found fine.
Daniel
The text was updated successfully, but these errors were encountered: