Bug 1972037

Summary: fc-validate commands returns exit code 0 on failure
Product: Red Hat Enterprise Linux 8 Reporter: avdhoot <asagare>
Component: fontconfigAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: avdhoot <asagare>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.3CC: bbarve, eng-i18n-bugs
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: fontconfig-2.13.1-4.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 20:04:59 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 avdhoot 2021-06-15 06:22:16 UTC
Description of problem:
fc-validate command is giving return code 0 on failure.

Version-Release number of selected component (if applicable):
[root@dhcp207-177 fonts]# rpm -qf `which fc-validate`
fontconfig-2.13.1-3.el8.x86_64


How reproducible:

Steps to Reproduce:
1. execute fc-validate with wrong font file for lang code
   e.g. fc-validate -l ja /usr/share/fonts/google-noto/NotoSansLisu-Regular.ttf


Actual results:
 Returns code is 0

Expected results:
 Return code should be 1

Additional info:

# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.3 Beta (Ootpa)

Comment 8 errata-xmlrpc 2021-11-09 20:04:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (fontconfig bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4507