LaTeX builder fails with non-ascii characters in production list token names

Akihiro Uchida avatarAkihiro Uchida created an issue

Since version 1.0.7, or changeset 3211:70f2984f86d7, Sphinx LaTeX writer generates hypertargets in the production list. However when a production list contains non-ascii unicode characters in its token name, LaTeX builder fails with UnicodeEncodeError see attached traceback log.

It seems non-ascii unicode characters are acceptable to reference commands, \ref, \hyperref, \cite, \label, \bibitem. Therefore I propose a removal of str() from idescape in sphinx/writer/latex.py to evade this problem. If it is not acceptable, a removal of non-ascii unicode characters from ids may be required.

Best Regards

Comments (2)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.