NetBSD/usr.bin/gencat
ginsbach a3a3ad0162 Changes for standards compliance:
- Accept "-" for msgfile (STDIN) and catfile (STDOUT)

- Merge msgfile into formatted catfile.  The catfile is created if
  it does not exist (current behavior).  If the catfile exists,
  its messages are included in the new catfile.  Collisions between
  set and message numbers cause the msgfile message text to replace
  the existing message text.

  (The $delset directive now makes more sense.)

Standards: The Open Group Base Specifications Issue 6
           IEEE Std 1003.1, 2004 Edition

- Replace corrupt()/nomem() with errx().  The replaced routines
  called local error() -> warning() which prints an input file line
  number.  This probably makes no sense for these conditions (it
  is not a syntax error in msgfile).  Line numbers are completely
  nonsense when dealing with reading a formatted catfile.

- Modify warning() to only print line number when reading from a
  message file.  Also print the current file being processed.

- Don't issue a warning when processing a line with only a message
  number and no trailing space.  This is valid and will delete any
  existing message with that number from the current set.

- Reset lineno for each msgfile processed.
2007-11-21 13:40:09 +00:00
..
Makefile Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op), 2003-05-18 07:57:31 +00:00
gencat.1
gencat.c Changes for standards compliance: 2007-11-21 13:40:09 +00:00