1. Hong Minhee
  2. Sphinx


Hong Minhee  committed ebfa378 Draft

Ensure index words to be unicode.

unicodedata.normalize() function takes only unicode for
second argument, and index words are normalized using
this function, so these should become unicode first.

  • Participants
  • Parent commits 348224a
  • Branches default

Comments (0)

Files changed (1)

File sphinx/environment.py

View file
         new = {}
         def add_entry(word, subword, link=True, dic=new):
+            word = unicode(word)
             entry = dic.get(word)
             if not entry:
                 dic[word] = entry = [[], {}]