[texdoc] Possible Bug

Ralph Martin martinrr at cardiff.ac.uk
Fri Apr 29 16:52:21 CEST 2022


Dear Takuto

thank you for your prompt response.

> On 29 Apr 2022, at 14:34, Takuto ASAKURA <tkt.asakura at gmail.com> wrote:
> 
> yes indeed, Texdoc should recognize the system language by referring to the environment variables such as LANG. However, sometimes just setting LANG doesn't work; setting LC_ALL fixes the problem in some cases.

Thank you. This indeed solved the problem. I will make sure this is set in future.

> Could you please show us the output of the Texdoc execution with the debug option -D?

See below:

texdoc debug-version: /usr/local/texlive/2022/texmf-dist/scripts/texdoc/texdoclib.tlu v3.4.1
texdoc debug-config: Setting "debug_list=all" from command-line option "-D".
texdoc debug-config: Setting "suffix_list=doc, -doc, _doc, .doc, /doc, manual, /manual, -manual, userguide, /user_guide, -guide, -user, man, -man, notes, -info, ref" in file "/usr/local/texlive/2022/texmf-dist/texdoc/texdoc.cnf" on line 88.
texdoc debug-config: Setting "lastfile_switch=true" in file "/usr/local/texlive/2022/texmf-dist/texdoc/texdoc.cnf" on line 561.
texdoc debug-config: Setting "machine_switch=false" from built-in defaults.
texdoc debug-config: Setting "mode=view" from built-in defaults.
texdoc debug-config: Setting "ext_list=pdf, htm, html, txt, dat, md, ps, dvi, " from built-in defaults.
texdoc debug-config: Setting "basename_list=readme, 00readme" from built-in defaults.
texdoc debug-config: Setting "verbosity_level=2" from built-in defaults.
texdoc debug-config: Setting "fuzzy_level=3" from built-in defaults.
texdoc debug-config: Setting "interact_switch=true" from built-in defaults.
texdoc debug-config: Setting "max_lines=20" from built-in defaults.
texdoc debug-config: Setting "badbasename_list=readme, 00readme" from built-in defaults.
texdoc debug-config: Setting "badext_list=txt, dat, " from built-in defaults.
texdoc debug-config: Setting "zipext_list=" from built-in defaults.
texdoc debug-config: Setting "rm_file=rm -f" from built-in defaults.
texdoc debug-config: Setting "rm_dir=rmdir" from built-in defaults.
texdoc debug-files: Configuration file(s):
texdoc debug-files: not found	/Users/ralph/Library/texlive/2022/texmf-config/texdoc/texdoc-universal-darwin.cnf
texdoc debug-files: not found	/Users/ralph/Library/texlive/2022/texmf-config/texdoc/texdoc.cnf
texdoc debug-files: not found	/Users/ralph/Library/texlive/2022/texmf-config/texdoc/texdoc-dist.cnf
texdoc debug-files: not found	/Users/ralph/Library/texlive/2022/texmf-var/texdoc/texdoc-universal-darwin.cnf
texdoc debug-files: not found	/Users/ralph/Library/texlive/2022/texmf-var/texdoc/texdoc.cnf
texdoc debug-files: not found	/Users/ralph/Library/texlive/2022/texmf-var/texdoc/texdoc-dist.cnf
texdoc debug-files: not found	/Users/ralph/Library/texmf/texdoc/texdoc-universal-darwin.cnf
texdoc debug-files: not found	/Users/ralph/Library/texmf/texdoc/texdoc.cnf
texdoc debug-files: not found	/Users/ralph/Library/texmf/texdoc/texdoc-dist.cnf
texdoc debug-files: not found	/usr/local/texlive/texmf-local/texdoc/texdoc-universal-darwin.cnf
texdoc debug-files: not found	/usr/local/texlive/texmf-local/texdoc/texdoc.cnf
texdoc debug-files: not found	/usr/local/texlive/texmf-local/texdoc/texdoc-dist.cnf
texdoc debug-files: not found	/usr/local/texlive/2022/texmf-config/texdoc/texdoc-universal-darwin.cnf
texdoc debug-files: not found	/usr/local/texlive/2022/texmf-config/texdoc/texdoc.cnf
texdoc debug-files: not found	/usr/local/texlive/2022/texmf-config/texdoc/texdoc-dist.cnf
texdoc debug-files: not found	/usr/local/texlive/2022/texmf-var/texdoc/texdoc-universal-darwin.cnf
texdoc debug-files: not found	/usr/local/texlive/2022/texmf-var/texdoc/texdoc.cnf
texdoc debug-files: not found	/usr/local/texlive/2022/texmf-var/texdoc/texdoc-dist.cnf
texdoc debug-files: not found	/usr/local/texlive/2022/texmf-dist/texdoc/texdoc-universal-darwin.cnf
texdoc debug-files: active	/usr/local/texlive/2022/texmf-dist/texdoc/texdoc.cnf
texdoc debug-files: not found	/usr/local/texlive/2022/texmf-dist/texdoc/texdoc-dist.cnf
texdoc debug-texdocs: texdocs[7] = /Users/ralph/Library/texlive/2022/texmf-config/doc (index_mandatory=false, recursion_allowed=true)
texdoc debug-texdocs: texdocs[6] = /Users/ralph/Library/texlive/2022/texmf-var/doc (index_mandatory=false, recursion_allowed=true)
texdoc debug-texdocs: texdocs[5] = /Users/ralph/Library/texmf/doc (index_mandatory=false, recursion_allowed=true)
texdoc debug-texdocs: texdocs[4] = /usr/local/texlive/texmf-local/doc (index_mandatory=true, recursion_allowed=true)
texdoc debug-texdocs: texdocs[4] using index: /usr/local/texlive/texmf-local (shift=doc/)
texdoc debug-texdocs: texdocs[3] = /usr/local/texlive/2022/texmf-config/doc (index_mandatory=true, recursion_allowed=true)
texdoc debug-texdocs: texdocs[2] = /usr/local/texlive/2022/texmf-var/doc (index_mandatory=true, recursion_allowed=true)
texdoc debug-texdocs: texdocs[1] = /usr/local/texlive/2022/texmf-dist/doc (index_mandatory=true, recursion_allowed=true)
texdoc debug-texdocs: texdocs[1] using index: /usr/local/texlive/2022/texmf-dist (shift=doc/)
texdoc debug-tlpdb: Using cached data from /Users/ralph/Library/texlive/2022/texmf-var/texdoc/cache-tlpdb.lua
texdoc debug-search: Searching documents for pattern "einfart"
texdoc debug-search: File /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/LICENSE found.
texdoc debug-search: File /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/README.md found.
texdoc debug-search: File /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/einfart-doc-cn.pdf found.
texdoc debug-search: File /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/einfart-doc-en.pdf found.
texdoc debug-search: File /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/einfart-doc-fr.pdf found.
texdoc debug-score: (b4ef41b) Start scoring /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/LICENSE
texdoc debug-score: (b4ef41b) Name used: latex/einfart/license
texdoc debug-score: (b4ef41b) Start heuristic scoring with pattern: einfart
texdoc debug-score: (b4ef41b) New heuristic score: 1.0. Reason: subword match
texdoc debug-score: (b4ef41b) New heuristic score: 0.1. Reason: bad extension
texdoc debug-score: (b4ef41b) New heuristic score: 1.6. Reason: directory bonus
texdoc debug-score: (b4ef41b) Final heuristic score: 1.6
texdoc debug-score: (b4ef41b) Max pattern score: 1.6
texdoc debug-score: (b4ef41b) Adjust by -10.0 from global pattern "license"
texdoc debug-score: (b4ef41b) Final score: -8.4
texdoc debug-score: (fd825a2) Start scoring /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/README.md
texdoc debug-score: (fd825a2) Name used: latex/einfart/readme.md
texdoc debug-score: (fd825a2) Start heuristic scoring with pattern: einfart
texdoc debug-score: (fd825a2) New heuristic score: 1.0. Reason: subword match
texdoc debug-score: (fd825a2) New heuristic score: 0.1. Reason: bad basename
texdoc debug-score: (fd825a2) New heuristic score: 1.6. Reason: directory bonus
texdoc debug-score: (fd825a2) Final heuristic score: 1.6
texdoc debug-score: (fd825a2) Max pattern score: 1.6
texdoc debug-score: (fd825a2) Catalogue "readme" bonus: +0.1
texdoc debug-score: (fd825a2) Adjust by 0.1 from global pattern "readme"
texdoc debug-score: (fd825a2) Final score: 1.8
texdoc debug-score: (0312650) Start scoring /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/einfart-doc-cn.pdf
texdoc debug-score: (0312650) Name used: latex/einfart/einfart-doc-cn.pdf
texdoc debug-score: (0312650) Start heuristic scoring with pattern: einfart
texdoc debug-score: (0312650) New heuristic score: 1.0. Reason: subword match
texdoc debug-score: (0312650) New heuristic score: 4.5. Reason: exact match for derived pattern: einfart-doc
texdoc debug-score: (0312650) New heuristic score: 6.0. Reason: directory bonus
texdoc debug-score: (0312650) Final heuristic score: 6.0
texdoc debug-score: (0312650) Max pattern score: 6.0
texdoc debug-score: (0312650) Catalogue details bonus: +1.5
texdoc debug-score: (0312650) Final score: 7.5
texdoc debug-score: (5f87cea) Start scoring /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/einfart-doc-en.pdf
texdoc debug-score: (5f87cea) Name used: latex/einfart/einfart-doc-en.pdf
texdoc debug-score: (5f87cea) Start heuristic scoring with pattern: einfart
texdoc debug-score: (5f87cea) New heuristic score: 1.0. Reason: subword match
texdoc debug-score: (5f87cea) New heuristic score: 4.5. Reason: exact match for derived pattern: einfart-doc
texdoc debug-score: (5f87cea) New heuristic score: 6.0. Reason: directory bonus
texdoc debug-score: (5f87cea) Final heuristic score: 6.0
texdoc debug-score: (5f87cea) Max pattern score: 6.0
texdoc debug-score: (5f87cea) Catalogue details bonus: +1.5
texdoc debug-score: (5f87cea) Final score: 7.5
texdoc debug-score: (3532ad9) Start scoring /usr/local/texlive/2022/texmf-dist/doc/latex/einfart/einfart-doc-fr.pdf
texdoc debug-score: (3532ad9) Name used: latex/einfart/einfart-doc-fr.pdf
texdoc debug-score: (3532ad9) Start heuristic scoring with pattern: einfart
texdoc debug-score: (3532ad9) New heuristic score: 1.0. Reason: subword match
texdoc debug-score: (3532ad9) New heuristic score: 4.5. Reason: exact match for derived pattern: einfart-doc
texdoc debug-score: (3532ad9) New heuristic score: 6.0. Reason: directory bonus
texdoc debug-score: (3532ad9) Final heuristic score: 6.0
texdoc debug-score: (3532ad9) Max pattern score: 6.0
texdoc debug-score: (3532ad9) Catalogue details bonus: +1.5
texdoc debug-score: (3532ad9) Final score: 7.5
texdoc debug-config: Setting "viewer_ps=open" from built-in defaults.
texdoc debug-config: Setting "viewer_html=open" from built-in defaults.
texdoc debug-config: Setting "viewer_dvi=open" from built-in defaults.
texdoc debug-config: Setting "viewer_txt=less" from built-in defaults.
texdoc debug-config: Setting "viewer_pdf=open" from built-in defaults.
texdoc debug-view: Using "viewer_pdf" to open the file.
texdoc info: View command: open "/usr/local/texlive/2022/texmf-dist/doc/latex/einfart/einfart-doc-cn.pdf"
texdoc info: Setting environment LC_CTYPE to: en_GB.UTF-8

Best wishes

Ralph


More information about the texdoc mailing list.