Bug 987059

Summary: Inaccurate error message when building with a wrong <programlisting> "language=" attribute
Product: [Community] Publican Reporter: Petr Bokoc <pbokoc>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.1CC: aigao, rlandman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-19 02:46:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.