summaryrefslogtreecommitdiff
path: root/lib/unicodeio.c
AgeCommit message (Collapse)Author
2006-07-04Sync from gnulib.Paul Eggert
2005-05-14Update FSF postal mail address.Jim Meyering
2005-04-09(__attribute__, ATTRIBUTE_UNUSED): Define.Jim Meyering
(exit_failure_callback, fallback_failure_callback): Mark unused parameters with ATTRIBUTE_UNUSED.
2003-09-13Update from gnulib.Jim Meyering
2003-08-18Sync with gnulib.Jim Meyering
2003-08-09(unicode_to_mb): Change Solaris 2.7 to Solaris 5.7 in comment.Jim Meyering
2002-11-23Update from gnulib.Jim Meyering
2002-02-112002-02-02 Paul Eggert <eggert@twinsun.com>Jim Meyering
Bruno Haible <bruno@clisp.org> * unicodeio.c (unicode_to_mb): New function, extracted from print_unicode_char. Call failure callback instead of error. (fwrite_success_callback): New function. (exit_failure_callback): New function. (fallback_failure_callback): New function. (print_unicode_char): Call unicode_to_mb.
2001-03-06(print_unicode_char): Simplify accordingly.Jim Meyering
2001-01-21(print_unicode_char): Cast the second iconv() arg,Jim Meyering
to avoid a warning. Add back 'const' to inptr.
2001-01-03(print_unicode_char): Remove `const' from declaration ofJim Meyering
local `inptr' to avoid warning with some system declarations of iconv.
2000-11-11Back out Paul's changes while we wait for him and Bruno to reach agreement.Jim Meyering
2000-11-10(ENOTSUP): Define to EINVAL if not defined.Jim Meyering
2000-11-10don't back them outJim Meyering
2000-11-10Back out the last two changes, at least for now.Jim Meyering
2000-11-09(MB_LEN_MAX): Make sure it's at least 6, to avoid buggy C libraries.Jim Meyering
2000-11-09(<wchar.h>): Do not include; no longer needed, since we no longer use wcrtomb.Jim Meyering
(<limits.h>): Include if HAVE_LIMITS_H. (MB_LEN_MAX): Define if limits.h doesn't. (convert_unicode_char): New function, with the conversion part of the old print_unicode_char. Use wctomb, not wcrtomb. Depend on HAVE_WCTOMB, not HAVE_WCRTOMB. (print_unicode_char): Use convert_unicode_char to do the conversion.
2000-11-08Include wchar.h.Jim Meyering
(wcrtomb): Provide fallback definition for broken platforms. (print_unicode_char): New alternative definition for platforms where wchar_t is Unicode.
2000-06-25(print_unicode_char): Work around ansi2knr deficiency.Jim Meyering
2000-04-07(print_unicode_char): Avoid triggering Solaris iconv bug.Jim Meyering
Deal with the different error behaviour of Irix iconv.
2000-03-17(<string.h>): Include only #if HAVE_STRING_H.Jim Meyering
Otherwise, include <strings.h>
2000-03-17(utf8_wctomb): New function.Jim Meyering
(print_unicode_char): Pass the Unicode character to iconv in UTF-8 format instead of in UCS-4 with platform dependent endianness.
2000-03-04(<errno.h>): Include it.Jim Meyering
(errno): Declare if not defined.
2000-03-01New file from Bruno.Jim Meyering
One portability tweak: guard inclusion of stddef.h.