aboutsummaryrefslogtreecommitdiffstats
path: root/lib/unicodeio.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2007-05-31Pull printf-related code from gnulib, rather than using forked copy.Jim Meyering1-257/+0
* bootstrap.conf (gnulib_modules): Don't avoid size_max and xsize modules. While I dislike xsize-style overflow avoidance, maintaining a forked version of e.g., vasnprintf.c was too much work. * lib/printf-parse.c, lib/vasnprintf.c, lib/unicodeio.c: Remove local copies, so we now get these files from gnulib.
2006-08-26Include <config.h> unconditionally, since we now assume config.h exists.Paul Eggert1-3/+1
2006-07-04Sync from gnulib.Paul Eggert1-5/+1
2005-05-14Update FSF postal mail address.Jim Meyering1-1/+1
2005-04-09(__attribute__, ATTRIBUTE_UNUSED): Define.Jim Meyering1-3/+15
(exit_failure_callback, fallback_failure_callback): Mark unused parameters with ATTRIBUTE_UNUSED.
2003-09-13Update from gnulib.Jim Meyering1-5/+1
2003-08-18Sync with gnulib.Jim Meyering1-21/+17
2003-08-09(unicode_to_mb): Change Solaris 2.7 to Solaris 5.7 in comment.Jim Meyering1-1/+1
2002-11-23Update from gnulib.Jim Meyering1-8/+4
2002-02-112002-02-02 Paul Eggert <eggert@twinsun.com>Jim Meyering1-30/+93
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 Meyering1-5/+3
2001-01-21(print_unicode_char): Cast the second iconv() arg,Jim Meyering1-2/+4
to avoid a warning. Add back 'const' to inptr.
2001-01-03(print_unicode_char): Remove `const' from declaration ofJim Meyering1-1/+1
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 Meyering1-88/+52
2000-11-10(ENOTSUP): Define to EINVAL if not defined.Jim Meyering1-0/+3
2000-11-10don't back them outJim Meyering1-70/+59
2000-11-10Back out the last two changes, at least for now.Jim Meyering1-59/+70
2000-11-09(MB_LEN_MAX): Make sure it's at least 6, to avoid buggy C libraries.Jim Meyering1-2/+6
2000-11-09(<wchar.h>): Do not include; no longer needed, since we no longer use wcrtomb.Jim Meyering1-71/+56
(<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 Meyering1-12/+56
(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 Meyering1-1/+1
2000-04-07(print_unicode_char): Avoid triggering Solaris iconv bug.Jim Meyering1-3/+9
Deal with the different error behaviour of Irix iconv.
2000-03-17(<string.h>): Include only #if HAVE_STRING_H.Jim Meyering1-1/+5
Otherwise, include <strings.h>
2000-03-17(utf8_wctomb): New function.Jim Meyering1-48/+112
(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 Meyering1-0/+5
(errno): Declare if not defined.
2000-03-01New file from Bruno.Jim Meyering1-0/+121
One portability tweak: guard inclusion of stddef.h.