lib/unicodeio.c


Log

Author Commit Date CI Message
Jim Meyering 218b44aa 2001-03-06T18:11:01 (print_unicode_char): Simplify accordingly.
Jim Meyering 9988b806 2001-01-21T09:40:43 (print_unicode_char): Cast the second iconv() arg, to avoid a warning. Add back 'const' to inptr.
Jim Meyering caa8c454 2001-01-03T10:08:43 (print_unicode_char): Remove `const' from declaration of local `inptr' to avoid warning with some system declarations of iconv.
Jim Meyering 8f34e041 2000-11-11T09:10:33 Back out Paul's changes while we wait for him and Bruno to reach agreement.
Jim Meyering 785114fd 2000-11-10T08:46:19 (ENOTSUP): Define to EINVAL if not defined.
Jim Meyering a4aa3dcb 2000-11-10T08:44:51 don't back them out
Jim Meyering e678e74f 2000-11-10T08:43:46 Back out the last two changes, at least for now.
Jim Meyering ddbed2bf 2000-11-09T08:32:52 (MB_LEN_MAX): Make sure it's at least 6, to avoid buggy C libraries.
Jim Meyering 582b534b 2000-11-09T08:30:00 (<wchar.h>): Do not include; no longer needed, since we no longer use wcrtomb. (<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.
Jim Meyering 34b831c8 2000-11-08T14:46:13 Include wchar.h. (wcrtomb): Provide fallback definition for broken platforms. (print_unicode_char): New alternative definition for platforms where wchar_t is Unicode.
Jim Meyering 45fb0477 2000-06-25T06:54:32 (print_unicode_char): Work around ansi2knr deficiency.
Jim Meyering 51630940 2000-04-07T09:41:38 (print_unicode_char): Avoid triggering Solaris iconv bug. Deal with the different error behaviour of Irix iconv.
Jim Meyering df0c912c 2000-03-17T19:34:16 (<string.h>): Include only #if HAVE_STRING_H. Otherwise, include <strings.h>
Jim Meyering 269accf8 2000-03-17T19:32:27 (utf8_wctomb): New function. (print_unicode_char): Pass the Unicode character to iconv in UTF-8 format instead of in UCS-4 with platform dependent endianness.
Jim Meyering f1ed0e84 2000-03-04T12:35:47 (<errno.h>): Include it. (errno): Declare if not defined.
Jim Meyering 95ad3586 2000-03-01T13:22:35 New file from Bruno. One portability tweak: guard inclusion of stddef.h.