Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkencodingsubset.tex shouldn't use undefined cs \Providesfile #1496

Open
cfr42 opened this issue Oct 17, 2024 · 7 comments
Open

checkencodingsubset.tex shouldn't use undefined cs \Providesfile #1496

cfr42 opened this issue Oct 17, 2024 · 7 comments
Labels
bug category base (latex) fixed in dev Fixed in development branch, not in stable release

Comments

@cfr42
Copy link
Contributor

cfr42 commented Oct 17, 2024

Brief outline of the bug

Undefined cs in checkencodingsubset.tex.

Minimal example showing the bug

Project's file: checkencodingsubset.tex

 $ (cd /tmp/ ; latex checkencodingsubset)

Output

This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/checkencodingsubset.tex
LaTeX2e <2024-06-01> patch level 2
L3 programming layer <2024-09-10>
! Undefined control sequence.
l.45 \Providesfile
                  {checkencodingsubset.tex}
? x
No pages of output.
Transcript written on checkencodingsubset.log

Log

This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=latex 2024.10.17)  17 OCT 2024 20:08
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**checkencodingsubset
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/checkencodingsubset.tex
LaTeX2e <2024-06-01> patch level 2
L3 programming layer <2024-09-10>
! Undefined control sequence.
l.45 \Providesfile
                  {checkencodingsubset.tex}
? x

Here is how much of TeX's memory you used:
 14 strings out of 473580
 490 string characters out of 5728259
 386800 words of memory out of 5000000
 23011 multiletter control sequences out of 15000+600000
 558069 words of font info for 36 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 12i,0n,13p,94b,8s stack positions out of 10000i,1000n,20000p,200000b,200000s
No pages of output.
@davidcarlisle
Copy link
Member

Oh thanks: it should be F not f

@cfr42
Copy link
Contributor Author

cfr42 commented Oct 17, 2024

Oh thanks: it should be F not f

I know:

--- /usr/local/texlive/2024/texmf-dist/tex/latex/base/checkencodingsubset.tex   2024-06-02 21:26:39.000000000 +0100
+++ /tmp/checkencodingsubset.tex        2024-10-17 20:32:12.247183226 +0100
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 %%% From File: lttextcomp.dtx
-\Providesfile{checkencodingsubset.tex}
+\ProvidesFile{checkencodingsubset.tex}
  [2024/01/27 v0.5a Figure out safe TS1 encoding subsets]
 \let\typeoutdetails\typeout
 \def\doesglyphexist#1#2{\iffontchar\testFont #1 0\else 1\relax \fi}

@FrankMittelbach
Copy link
Member

means nobody ever used that before .. why did we bother? :-(

@cfr42
Copy link
Contributor Author

cfr42 commented Oct 18, 2024

means nobody ever used that before .. why did we bother? :-(

Plenty of people only report bugs they can't easily fix themselves and this is trivial. Much easier to fix than report, especially if the guidance seems less than enthusiastic about bug reports and insists on requirements which don't apply. I understand why you have that guidance, but it will inevitably deter some reports. After all, that's the point of having the guidance. I did report it, but I certainly thought twice first.

@cfr42
Copy link
Contributor Author

cfr42 commented Oct 18, 2024

I realise that sounds as if I'm griping about the guidance. I'm not. I just meant: I don't think you can infer zero usage from zero bug reports when it is this easy to fix.

@muzimuzhi
Copy link
Contributor

means nobody ever used that before .. why did we bother? :-(

@cfr42 I think this is just some sense of humor. 😄 Of course your report is welcome.

@FrankMittelbach
Copy link
Member

I realise that sounds as if I'm griping about the guidance. I'm not. I just meant: I don't think you can infer zero usage from zero bug reports when it is this easy to fix.

probably not, but in this particular case I'm not so sure. If you read ltnews then you see that there was a big plea to people making TS1 fonts to use it in order to improve the situation with that encoding. Now the real test for usage is probably if over time such .fd files will get the necessary declarations.

anyway, yes your report is of cource appreciated.

cfr42 added a commit to cfr42/latex2e that referenced this issue Oct 18, 2024
@josephwright josephwright added fixed in dev Fixed in development branch, not in stable release bug category base (latex) labels Oct 21, 2024
@josephwright josephwright added this to the Release 2024 Fall milestone Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category base (latex) fixed in dev Fixed in development branch, not in stable release
Projects
None yet
Development

No branches or pull requests

5 participants