Red Hat Bugzilla – Bug 987059
Inaccurate error message when building with a wrong <programlisting> "language=" attribute
Last modified: 2013-12-18 21:46:26 EST
Description of problem:
BZ#919474 changed the "language" attribute in the <programlisting> tag so that it's no longer case sensitive. It works; however, if you specify the parameter as completely wrong (not just wrong case), you get the following error:
> 'sdaglhkisud' is not a valid language for highlighting. Language names are case sensitive.
Version-Release number of selected component (if applicable):
How reproducible: 100%
Steps to Reproduce:
1. use a <programlisting> tag in a book with a nonsensical "language" attribute
2. build the book
An error message tells you that language names are case sensitive.
An error message tells you that you probably misspelled the language, or used one that isn't supported.
Removed second sentence since language names are no longer case sensitive.
c66b2d0..ff6375f HEAD -> devel
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.
Verified in publican-3.9.9-0.fc19.t4.noarch
undefined language: sdaglhkisud at /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate.pm line 621.
LibXSLT: error coming back from perl-dispatcher in pm file.
'sdaglhkisud' is not a valid language for highlighting.
at /usr/lib64/perl5/vendor_perl/XML/LibXSLT.pm line 81.