LaTeX bugs database
This is a search tool for the LaTeX bugs database.This search tool allows you to search the LaTeX3 project team's database of all bug reports for LaTeX. If you discover what you believe to be a bug with LaTeX, you can search this database to find out if it has already been reported.
Note that you can only search for bugs which were reported after December 1994, when we made the database public.
PR number: cyrillic/3497
Synopsis: getting "encoding scheme unknown" using Babel
Confidential: no
State: closed
Arrival date: Fri Jan 24 01:11:02 CET 2003
Uri Blumenthal
Thu, 23 Jan 2003 19:01:28 -0500
Description of bug:
(C:\texmf\tex\latex\base\article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document
class (C:\texmf\tex\latex\base\size10.clo))
(C:\texmf\tex\latex\geometry\geometry.sty
(C:\texmf\tex\latex\graphics\keyval.sty)
(C:\texmf\tex\latex\geometry\geometry.cfg))
(C:\texmf\tex\latex\epigraph\epigraph.sty)
(C:\texmf\tex\latex\base\inputenc.sty
(C:\texmf\tex\latex\cyrillic\koi8-r.def))
(C:\texmf\tex\generic\Babel\babel.sty
(C:\texmf\tex\generic\Babel\english.ldf
(C:\texmf\tex\generic\Babel\babel.def))
(C:\texmf\tex\generic\Babel\russianb.ldf
(C:\texmf\tex\latex\cyrillic\t2aenc.def
! LaTeX Error: Encoding scheme `'
unknown.
See the LaTeX manual or LaTeX Companion for
explanation. Type H <return> for immediate
help.
...
l.39 ...{\LastDeclaredEncoding}{cmr}{m}{n}
The command \LastDeclaredEncoding seems to return empty in this case
Sample file which indicates the problem:
========================================
\documentclass{article}
\usepackage[koi8-r]{inputenc}
\usepackage[english,russian]{babel}
\pagestyle{empty}
\begin{document}
\title{Test}
\author{}
\date{}
\maketitle
\thispagestyle{empty}
\begin{verse}
,LBk(B ,LZ`PaXRP(B ,LX(B ,L]UV]P(B.\\
,LBk(B ,L[nQX\P(B, ,Lbk(B ,L]cV]P(B.\\
,LBk(B ,L]Pa\Uh[XRP(B, ,L[cZPRP(B --\\
,L8(B ,LRUal\P(B ,LZ`cb^S^(B ,L]`PRP(B!
\end{verse}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
The log file from running LaTeX on the sample:
==============================================
This is pdfTeX, Version 3.14159-1.10a-beta-20021101 (MiKTeX 2.2)
(preloaded format=latex 2000.11.28) 23 JAN 2003 18:45
**julia09
(julia09.tex{pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for english, german, ngerman,
russian, u
krainian, dumylang, nohyphenation, loaded.
(C:\texmf\tex\latex\base\article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(C:\texmf\tex\latex\base\size10.clo
File: size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (C:\texmf\tex\latex\base\inputenc.sty
Package: inputenc 2001/07/10 v0.99a Input encoding file
(C:\texmf\tex\latex\cyrillic\koi8-r.def
File: koi8-r.def 1999/11/16 v1.0d Input encoding file
)) (C:\texmf\tex\generic\Babel\babel.sty
Package: babel 2001/03/01 v3.7h The Babel package
(C:\texmf\tex\generic\Babel\english.ldf
Language: english 2001/04/15 v3.3l English support from the babel system
(C:\texmf\tex\generic\Babel\babel.def
File: babel.def 2001/03/01 v3.7h Babel common definitions
\babel@savecnt=\count87
LaTeX Info: Redefining \flqq on input line 604.
LaTeX Info: Redefining \frqq on input line 606.
\U@D=\dimen103
)
\l@canadian = a dialect from \language\l@english
) (C:\texmf\tex\generic\Babel\russianb.ldf
Language: russianb 2001/02/21 v1.1n Russian support from the babel
system
(C:\texmf\tex\latex\cyrillic\t2aenc.def
File: t2aenc.def 2001/08/11 v1.0f Cyrillic encoding definition file
! LaTeX Error: Encoding scheme `' unknown.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.39 ...{\LastDeclaredEncoding}{cmr}{m}{n}
? x
No pages of output.
============================================================
End of LaTeX2e bug report.
============================================================
>Fix:
>Release-Note:
LaTeX2e bug report.
Generated by latexbug.tex on 2003/01/23
Reports may be submitted by email to latex-bugs@latex-project.org
Please use the subject line:
Subject: getting "encoding scheme unknown" using Babel
To follow up an existing report, include the bug reference, e.g.
"latex/1234: ", preceding the subject text.
============================================================
*** Initex configuration files
fonttext.cfg
2001/06/04 v2.2z LaTeX Kernel (Text font setup)
omlenc.def
2001/06/05 v1.94 Standard LaTeX file
t1enc.def
2001/06/05 v1.94 Standard LaTeX file
ot1enc.def
2001/06/05 v1.94 Standard LaTeX file
omsenc.def
2001/06/05 v1.94 Standard LaTeX file
t1cmr.fd
1999/05/25 v2.5h Standard LaTeX font definitions
ot1cmr.fd
1999/05/25 v2.5h Standard LaTeX font definitions
ot1cmss.fd
1999/05/25 v2.5h Standard LaTeX font definitions
ot1cmtt.fd
1999/05/25 v2.5h Standard LaTeX font definitions
fontmath.cfg
2001/06/04 v2.2z LaTeX Kernel (Math font setup)
omlcmm.fd
1999/05/25 v2.5h Standard LaTeX font definitions
omscmsy.fd
1999/05/25 v2.5h Standard LaTeX font definitions
omxcmex.fd
1999/05/25 v2.5h Standard LaTeX font definitions
ucmr.fd
1999/05/25 v2.5h Standard LaTeX font definitions
preload.cfg
2001/06/04 v2.2z LaTeX Kernel (Uncustomised preload font setup)
preload.ltx
1998/08/17 v2.1g LaTeX Kernel (Font Preloading)
hyphen.cfg
2001/03/01 v3.7h Babel language switching mechanism
***
bugs reply
Fri, 24 Jan 2003 01:33:21 +0100
it seem to work for me here excapt that the coding in the verse seems strange
and most likely not koi8-r as a result i get inputenc errors, eg
! Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `koi8-r'.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.17 ^^[
but i suspect this is a mail transport problem. you would need to use 7bit for
save mail transport, eg ^^ notation. but never mind
my suspicion is that your pdftex format is simply old and the two do not work
properly together, the bug reports a recent latex but the log shows
This is pdfTeX, Version 3.14159-1.10a-beta-20021101 (MiKTeX 2.2)
(preloaded format=latex 2000.11.28) 23 JAN 2003 18:45
^^^^^^^^^^
so that format is not current and probably contains code that simply goes ...
please try with using latex instead of pdflatex and if that work generate a
new format for pdflatex
good night
frank
Vladimir Volovich
24 Jan 2003 13:16:11 +0300
"UB" == Uri Blumenthal writes:
UB> The command \LastDeclaredEncoding seems to return empty in this
UB> case
[...]
UB> This is pdfTeX, Version 3.14159-1.10a-beta-20021101 (MiKTeX 2.2)
UB> (preloaded format=latex 2000.11.28)
[...]
UB> (C:\texmf\tex\latex\cyrillic\t2aenc.def File: t2aenc.def
UB> 2001/08/11 v1.0f Cyrillic encoding definition file
UB> ! LaTeX Error: Encoding scheme `' unknown.
UB> See the LaTeX manual or LaTeX Companion for explanation. Type H
UB> <return> for immediate help. ...
UB> l.39 ...{\LastDeclaredEncoding}{cmr}{m}{n}
similar problem was recently discussed in news:fido7.ru.tex, and it
was observed that the reason for this problem are two bugs: one in
custom cslatex's fonttext.cfg ($TEXMF/tex/cslatex/fonttext.cfg) which
redefined latex's internal \DeclareFontEncoding@ macro, and another
bug in MikTeX which did not find the correct fonttext.cfg when
generating a format file pdflatex.fmt.
some details: cslatex comes with a file $TEXMF/tex/cslatex/fonttext.cfg
which has the same name as standard $TEXMF/tex/generic/config/fonttext.cfg
in that custom file, they redefined \DeclareFontEncoding@ at some date:
they changed one line
\global\@namedef{T@#1}{#2}%
to
\global\@namedef{T@#1}{#2\csname @@#1Codes\endcsname\@hyphenation}%
but later, latex's definition of that macro was updated by adding one
more line:
\xdef\LastDeclaredEncoding{#1}%
and cslatex's macro still lacks that definition (people already wrote
to them asking to update their fonttext.cfg).
that should not affect you, if you were using teTeX or fpTeX of TeX
Live: they use kpathsea library, which defines in texmf.cnf the order
of searching the files:
TEXINPUTS.cslatex = .;$TEXMF/tex/{cslatex,csplain,latex,generic,}//
TEXINPUTS.latex = .;$TEXMF/tex/{latex,generic,}//
TEXINPUTS.pdfcslatex = .;$TEXMF/{pdftex,tex}/{cslatex,csplain,latex,generic,}//
TEXINPUTS.pdflatex = .;$TEXMF/{pdftex,tex}/{latex,generic,}//
so if you were using one of those distributions instead of MikTeX, you
would not get that bug: when generating pdflatex.fmt, it would find
the proper fonttext.cfg under $TEXMF/tex/generic/config/fonttext.cfg
(but when generating pdfcslatex.cfg, $TEXMF/tex/cslatex/fonttext.cfg
will be found).
it seems that MikTeX is not good at this and inputs a random file from
the texmf tree instead of the proper one in case there are several
files with the same name in the rexmf tree.
a workaround would be to delete the cslatex's fonttext.cfg from
miktex's texmf tree (or uninstall the cslatex support) and regenerate
format files.
though, your bug report contains:
> *** Initex configuration files
> fonttext.cfg
> 2001/06/04 v2.2z LaTeX Kernel (Text font setup)
which shows that latex has the proper fonttext.cfg preloaded, but i
guess that pdflatex doesn't have the proper one: if you were using
pdflatex latexbug, you should have gotten something like
> fonttext.cfg
> 1997/08/20 CSLaTeX
cyrillic fontenc files (e.g. t2aenc.def) contain:
\NeedsTeXFormat{LaTeX2e}[1998/12/01]
so they should work with latex 1998/12/01 or later
(provided that noone has incorrectly redefined internal commands, like
cslatex did)
Best,
v.
Uri Blumenthal
Fri, 24 Jan 2003 09:38:57 -0500
"Frank (bugs reply)" wrote: > it seem to work for me here excapt that the coding in the verse > seems strange and most likely not koi8-r as a result i get > inputenc errors, eg Hmm... OK... > but i suspect this is a mail transport problem. you would need to > use 7bit for save mail transport, eg ^^ notation. but never mind I tried MIME, but bug-catcher mail service bounced it back... > my suspicion is that your pdftex format is simply old and the two > do not work properly together, the bug reports a recent latex but > the log shows > > This is pdfTeX, Version 3.14159-1.10a-beta-20021101 (MiKTeX 2.2) > (preloaded format=latex 2000.11.28) 23 JAN 2003 18:45 > ^^^^^^^^^^ > > so that format is not current and probably contains code that > simply goes ... > > please try with using latex instead of pdflatex and if that > work generate a new format for pdflatex Yes it works fine for LaTeX. Both latex->dvips and latex->dvipdfm worked fine. Please teach me - how can I recreate the format in MikTeX? I think I've done that, yet the result is still the same... ??? > good night > frank Frank, thank you for your halp and suggestions! Looks like a bit more, and it will be working for me in pdflatex.
Uri Blumenthal
Fri, 24 Jan 2003 10:13:44 -0500
Vladimir,
In MikTeX there's config file similar to "texmf.cnf" of teTeX.
It's called "miktex.ini". Needless to say, all the paths there
seem to be correct, including that for "pdflatex"... And indeed
"pdflatex latexbug" showed "fonttext.cfg" of 1997, while latex
shows "fonttext.cfg" of 2001. I don't understand why/how MikTeX
doesn't follow the paths...
Removing "fonttext.cfg" from "C:/texmf/tex/cslatex" directory
and copying one from "C:/texmf/tex/latex/base" instead, took
care of the problem - just as you suggested.
Thank you!!
Vladimir Volovich wrote:
> "UB" == Uri Blumenthal writes:
>
> UB> The command \LastDeclaredEncoding seems to return empty in this
> UB> case
> [...]
> UB> This is pdfTeX, Version 3.14159-1.10a-beta-20021101 (MiKTeX 2.2)
> UB> (preloaded format=latex 2000.11.28)
> [...]
> UB> (C:\texmf\tex\latex\cyrillic\t2aenc.def File: t2aenc.def
> UB> 2001/08/11 v1.0f Cyrillic encoding definition file
>
> UB> ! LaTeX Error: Encoding scheme `' unknown.
>
> UB> See the LaTeX manual or LaTeX Companion for explanation. Type H
> UB> <return> for immediate help. ...
>
> UB> l.39 ...{\LastDeclaredEncoding}{cmr}{m}{n}
>
> similar problem was recently discussed in news:fido7.ru.tex, and it
> was observed that the reason for this problem are two bugs: one in
> custom cslatex's fonttext.cfg ($TEXMF/tex/cslatex/fonttext.cfg) which
> redefined latex's internal \DeclareFontEncoding@ macro, and another
> bug in MikTeX which did not find the correct fonttext.cfg when
> generating a format file pdflatex.fmt.
>
> some details: cslatex comes with a file $TEXMF/tex/cslatex/fonttext.cfg
> which has the same name as standard $TEXMF/tex/generic/config/fonttext.cfg
> in that custom file, they redefined \DeclareFontEncoding@ at some date:
> they changed one line
> \global\@namedef{T@#1}{#2}%
> to
> \global\@namedef{T@#1}{#2\csname @@#1Codes\endcsname\@hyphenation}%
>
> but later, latex's definition of that macro was updated by adding one
> more line:
> \xdef\LastDeclaredEncoding{#1}%
>
> and cslatex's macro still lacks that definition (people already wrote
> to them asking to update their fonttext.cfg).
>
> that should not affect you, if you were using teTeX or fpTeX of TeX
> Live: they use kpathsea library, which defines in texmf.cnf the order
> of searching the files:
>
> TEXINPUTS.cslatex = .;$TEXMF/tex/{cslatex,csplain,latex,generic,}//
> TEXINPUTS.latex = .;$TEXMF/tex/{latex,generic,}//
> TEXINPUTS.pdfcslatex = .;$TEXMF/{pdftex,tex}/{cslatex,csplain,latex,generic,}//
> TEXINPUTS.pdflatex = .;$TEXMF/{pdftex,tex}/{latex,generic,}//
>
> so if you were using one of those distributions instead of MikTeX, you
> would not get that bug: when generating pdflatex.fmt, it would find
> the proper fonttext.cfg under $TEXMF/tex/generic/config/fonttext.cfg
> (but when generating pdfcslatex.cfg, $TEXMF/tex/cslatex/fonttext.cfg
> will be found).
>
> it seems that MikTeX is not good at this and inputs a random file from
> the texmf tree instead of the proper one in case there are several
> files with the same name in the rexmf tree.
>
> a workaround would be to delete the cslatex's fonttext.cfg from
> miktex's texmf tree (or uninstall the cslatex support) and regenerate
> format files.
>
> though, your bug report contains:
>
> > *** Initex configuration files
> > fonttext.cfg
> > 2001/06/04 v2.2z LaTeX Kernel (Text font setup)
>
> which shows that latex has the proper fonttext.cfg preloaded, but i
> guess that pdflatex doesn't have the proper one: if you were using
> pdflatex latexbug, you should have gotten something like
>
> > fonttext.cfg
> > 1997/08/20 CSLaTeX
Indeed it got this.
> cyrillic fontenc files (e.g. t2aenc.def) contain:
> \NeedsTeXFormat{LaTeX2e}[1998/12/01]
> so they should work with latex 1998/12/01 or later
> (provided that noone has incorrectly redefined internal commands, like
> cslatex did)
>
> Best,
> v.
Vladimir Volovich
Fri, 24 Jan 2003 19:30:05 +0300
Hi! "UB" == Uri Blumenthal writes: UB> Vladimir, In MikTeX there's config file similar to "texmf.cnf" of UB> teTeX. It's called "miktex.ini". Needless to say, all the paths UB> there seem to be correct, including that for "pdflatex"... And UB> indeed "pdflatex latexbug" showed "fonttext.cfg" of 1997, while UB> latex shows "fonttext.cfg" of 2001. I don't understand why/how UB> MikTeX doesn't follow the paths... UB> Removing "fonttext.cfg" from "C:/texmf/tex/cslatex" directory and UB> copying one from "C:/texmf/tex/latex/base" instead, took care of UB> the problem - just as you suggested. >> though, your bug report contains: >> >> > *** Initex configuration files > fonttext.cfg > 2001/06/04 v2.2z >> LaTeX Kernel (Text font setup) >> >> which shows that latex has the proper fonttext.cfg preloaded, but >> i guess that pdflatex doesn't have the proper one: if you were >> using pdflatex latexbug, you should have gotten something like >> >> > fonttext.cfg > 1997/08/20 CSLaTeX UB> Indeed it got this. so indeed there are two bugs: one in cslatex (redefinition of latex internal command which did not follow the change in latex - although the cslatex files were last released in 2002 but not in 1997 as the banner says), and another bug in MikTeX. Please report this to MikTeX maintainers... Conclusion: this bug report can be closed? (no files in base latex or required packages should be changed to correct the bug). Best, v.
Uri Blumenthal
Tue, 28 Jan 2003 14:48:21 -0500
Vladimir Volovich wrote: > so indeed there are two bugs: one in cslatex (redefinition of latex > internal command which did not follow the change in latex - although > the cslatex files were last released in 2002 but not in 1997 as the > banner says), and another bug in MikTeX. Yes I confirm. > Please report this to MikTeX maintainers... You mean - I report...? (:-) Could you guys perhaps forward the info with some intelligent comments to them? Please? > Conclusion: this bug report can be closed? (no files in base > latex or required packages should be changed to correct the bug). As far as I know - yes. Though I doubt you're asking me (:-).
Address information Copyright 1994 — 2016 the LaTeX3 project and Alan Jeffrey.