This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug locale/22292] New: localedef exits with error 4 when it should be error 1
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 13 Oct 2017 08:11:42 +0000
- Subject: [Bug locale/22292] New: localedef exits with error 4 when it should be error 1
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22292
Bug ID: 22292
Summary: localedef exits with error 4 when it should be error 1
Product: glibc
Version: 2.27
Status: NEW
Severity: normal
Priority: P2
Component: locale
Assignee: unassigned at sourceware dot org
Reporter: carlos at redhat dot com
Target Milestone: ---
The current localedef implementation treats all warnings like errors.
This means that you can never have just warnings and an exit code of 1 as is
required by POSIX.
The fix for this is for localdef to stop using error_message_count to count
errors, and instead adopt some better internal structure to track issued
errors, warnings, and verbose messages.
If any errors are seen, then exit with error 4 without writing data.
If only warnings are seen, then exit with error 1 to indicate data was written.
--
You are receiving this mail because:
You are on the CC list for the bug.