Commit Graph

7 Commits

Author SHA1 Message Date
Paul Eggert
9ded0a0567 Sync with fileutils 2002-02-11 14:28:09 +00:00
Paul Eggert
1a9ace4d99 Include iconv.h before testing for EILSEQ. 2001-09-25 22:52:27 +00:00
Paul Eggert
1ad624bbbc (EILSEQ): Include <time.h> and <wchar.h> if <errno.h> does not define
EILSEQ, because BSD/OS 4.1 defines EILSEQ in <wchar.h>, which requires
<time.h>.  Define a replacement EILSEQ to be ENOENT, not EINVAL, since
callers may want to distinguish EINVAL and EILSEQ.
2001-09-25 18:17:36 +00:00
Paul Eggert
61170ee840 Don't assume we're using the included libintl. 2001-09-23 06:40:35 +00:00
Paul Eggert
1b10ab140f (<libintl.h>): Do not include; no longer needed.
(_): Remove; no longer needed.
2001-09-23 05:37:04 +00:00
Paul Eggert
a942967415 (EILSEQ, ENOTSUP): New macros, if not defined by errno.h.
(<error.h>): Do not include.
(unicode_to_mb): Return int, not void.  New arg for failure callback.
Invoke the failure callback instead of invoking 'error'.
(print_unicode_success): Renamed from fprintf_callback.  Now extern.
Return -1 on failure, 0 on success.
(print_unicode_failure): New function.
(print_unicode_char): Return int.  Adjust to changes to unicode_to_mb.
Do not report error: instead, print an approximation.
2001-09-21 22:26:45 +00:00
Paul Eggert
e873bb4ed8 Initial revision 2001-04-03 15:18:12 +00:00