Commits

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.

Comments (0)

Files changed (1)

sphinx/environment.py

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