Bug 987059 - Inaccurate error message when building with a wrong <programlisting> "language=" attribute
Summary: Inaccurate error message when building with a wrong <programlisting> "languag...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-22 15:40 UTC by Petr Bokoc
Modified: 2013-12-19 02:46 UTC (History)
2 users (show)

Fixed In Version: 4.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-19 02:46:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Petr Bokoc 2013-07-22 15:40:40 UTC
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):
publican-3.1.5-0.fc17.t62.noarch

How reproducible: 100%

Steps to Reproduce:
1. use a <programlisting> tag in a book with a nonsensical "language" attribute
2. build the book

Actual results:
An error message tells you that language names are case sensitive.

Expected results:
An error message tells you that you probably misspelled the language, or used one that isn't supported.

Additional info:

Comment 2 Jeff Fearn 🐞 2013-09-23 05:03:15 UTC
Removed second sentence since language names are no longer case sensitive.

To ssh://git.fedorahosted.org/git/publican.git
   c66b2d0..ff6375f  HEAD -> devel

Comment 3 HSS Product Manager 2013-09-23 05:07:37 UTC
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.

Comment 4 Ruediger Landmann 2013-10-11 03:08:02 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.