This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug locale/22292] New: localedef exits with error 4 when it should be error 1


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]