Fix crash on any-references with unicode.

Fixes sphinx-doc/sphinx#2555.
This commit is contained in:
Jakob Lykke Andersen committed 2016-05-18 09:38:27 +09:00
1 parent 1959dfe8d9
commit a441ac98a1
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -54,6 +54,7 @@ Bugs fixed
* #2526: LaTeX writer crashes if the section having only images
* #2522: Sphinx touches mo files under installed directory that caused permission error.
* #2536: C++, fix crash when an immediately nested scope has the same name as the current scope.
* #2555: Fix crash on any-references with unicode.
Release 1.4.1 (released Apr 12, 2016)
+1 -1
View File
@@ -4100,7 +4100,7 @@ class CPPDomain(Domain):
parser.assert_end()
except DefinitionError as e:
warner.warn('Unparseable C++ cross-reference: %r\n%s'
% (target, str(e.description)))
% (target, text_type(e.description)))
return None, None
parentKey = node.get("cpp:parent_key", None)
rootSymbol = self.data['root_symbol']