-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Unicode in branch names gives unexpected error #3060
Comments
Looks similar to #2991 |
I addressed the issue in #3073. Triggering your build, it seems the hotfix resolved the issue. |
It actually looks like there is another unicode bug with our branch handling:
|
If #4052 is implemented for branches, this should be solved. |
@ericholscher #4052 is just for tags, unicode branches are still failing. Using py3 solves this also p: |
I just tested this is in our Azure instance that it's running Python 3.6.5:
So, we can say that "It works under Python 3.6" without #4433 merged. Now, I have some questions,
|
We could use what I suggested at #1410 (comment) some time ago. Instead of removing the chars, it tries to use a "similar one". >>> import unicodedata
>>> unicodedata.normalize('NFKD', u'aúbranchńwithìweirdĉcharactersõanddê').encode('ascii', 'ignore')
b'aubranchnwithiweirdccharactersoandde' On the other hand, if there is not an "easy replacement" it just skip/ignore it: >>> unicodedata.normalize('NFKD', u'Straße').encode('ascii', 'ignore')
b'Strae' |
As long as the server is correctly setup I don't think so. I guess we can live with no-ascii chars in the urls https://stackoverflow.com/questions/6625035/utf-8-characters-in-urls#6625474 |
Details
Expected Result
Documentation built
Actual Result
Almost immediately after start build failing with text "An unexpected error occurred". This happens for most of latest builds.
The text was updated successfully, but these errors were encountered: