-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Error when using a unicode filename on Windows #833
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
Comments
I just checked your example and this works fine on Linux (and last time I checked it did on OSX too). So I am fairly sure this is an issue with how we support Windows. Unfortunately Windows is a best effort support, as I don't use windows. |
Our Windows CI failed with a similar error when I added a new unicode-filename test. So that gives me one way to reproduce it, now we just need to figure out a fix. See lines 1065 - 1109. |
The test did pass on Python 3 under windows, so a work around would be to use Python 3. |
Thanks for the information. For the current project I just stuck to the page-tree 👍 |
This is the actual error outside of MkDocs. Python 2.7.10 (default, Aug 18 2015, 10:37:14)
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from urllib import pathname2url
>>> pathname2url(u"Ü")
/home/dougal/.pyenv/versions/2.7.10/lib/python2.7/urllib.py:1303: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
return ''.join(map(quoter, s))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/dougal/.pyenv/versions/2.7.10/lib/python2.7/urllib.py", line 61, in pathname2url
return quote(pathname)
File "/home/dougal/.pyenv/versions/2.7.10/lib/python2.7/urllib.py", line 1303, in quote
return ''.join(map(quoter, s))
KeyError: u'\xdc' |
I am not totally sure this is the right place, but you will tell me :)
In a mkdocs-material-project I wanted to use diacritics in the filename, like this:
And such an "Ü" seems to break everything:
Is this already known?
The text was updated successfully, but these errors were encountered: