Bug 446916

Summary: ocaml-gettext fails with NULL string not expected at 62 in gettextStubCompat_stubs.c
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: ocaml-gettextAssignee: Richard W.M. Jones <rjones>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.3.2-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-09 15:54:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2008-05-16 16:46:26 UTC
Programs linked to ocaml-gettext fail with this message
if LANG is set to a locale name which cannot be parsed properly:

$ LANG=xx virt-df
Fatal error: exception Failure("NULL string not expected at 62 in
gettextStubCompat_stubs.c")

It turns out that setlocale(3) is returning NULL which the stubs
aren't expecting.

Comment 1 Richard W.M. Jones 2008-05-16 16:54:39 UTC
Upstream bug filed:

http://le-gall.net/sylvain+violaine/bts/?do=details&id=66

Comment 2 Richard W.M. Jones 2008-05-27 15:39:16 UTC
I posted a couple of patches upstream which I'm hoping should fix this.

http://annexia.org/tmp/ocaml-gettext-0.3.1-stringoption.patch
http://annexia.org/tmp/ocaml-gettext-0.3.1-test-bad-lang.patch