lib/unicodeio.c


Log

Author Commit Date CI Message
Jim Meyering 1602f0af 2012-01-01T10:04:58 maint: update all copyright year number ranges Run "make update-copyright".
Jim Meyering d60f3b0c 2011-01-01T20:17:23 maint: update almost all copyright ranges to include 2011 Run the new "make update-copyright" rule.
Bruno Haible 63bc47a1 2010-11-20T18:54:00 Port to uClibc. * lib/relocatable.c (find_shared_library_fullname): Treat uClibc like glibc. * lib/strerror_r.c: Likewise. * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise. * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise. * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise. * m4/glibc21.m4 (gl_GLIBC21): Likewise. * tests/test-sigaction.c (handler, main): Likewise. * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL): Treat uClibc like a non-glibc platform. * lib/propername.c (proper_name_utf8): Likewise. * lib/spawn.in.h: Likewise. * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise. * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1, mem_cd_iconveh_internal): Likewise. * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise. * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk, strstr, strcasestr): Likewise. * lib/unicodeio.c (unicode_to_mb): Likewise. * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise. * m4/getline.m4 (gl_FUNC_GETLINE): Likewise. * m4/glibc2.m4 (gt_GLIBC2): Likewise. * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise. * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise. * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise. * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR): Likewise. * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise. * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise. * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise. * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise. * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise. * m4/unistd_h.m4 (gl_UNISTD_H): Likewise. * m4/wchar_h.m4 (gl_WCHAR_H): Likewise. * tests/test-getopt.h (OPTIND_MIN): Likewise. * tests/test-striconveha.c (main): Likewise. * doc/posix-functions/getdelim.texi: Mention an uClibc bug. * doc/posix-functions/getline.texi: Likewise. Reported by Mike Frysinger <vapier@gentoo.org>.
Jim Meyering b2e2010c 2010-01-01T10:31:12 update nearly all FSF copyright year lists to include 2010 Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
Eric Blake 169ab5de 2009-12-22T15:14:49 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_ There are more contexts where __attribute__((__unused__)) is useful than just parameter lists. Also, naming the macro _GL_UNUSED fits with the recent addition of _GL_ARG_NONNULL. Preserve the name _UNUSED_PARAMETER_ for backwards-compatible use in external projects. * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately named alias for __attribute__((__unused__)). * lib/chown.c: Update client. * lib/fchmodat.c: Likewise. * lib/fts.c: Likewise. * lib/getdate.y: Likewise. * lib/getgroups.c: Likewise. * lib/getopt.c: Likewise. * lib/getugroups.c: Likewise. * lib/mkdir.c: Likewise. * lib/mkfifo.c: Likewise. * lib/mkfifoat.c: Likewise. * lib/mknod.c: Likewise. * lib/mknodat.c: Likewise. * lib/readlink.c: Likewise. * lib/se-context.in.h: Likewise. * lib/se-selinux.in.h: Likewise. * lib/sockets.c: Likewise. * lib/symlink.c: Likewise. * lib/symlinkat.c: Likewise. * lib/unicodeio.c: Likewise. * lib/unistr.h: Likewise. * tests/test-areadlink.c: Likewise. * tests/test-areadlinkat.c: Likewise. * tests/test-filenamecat.c: Likewise. * tests/test-fseeko.c: Likewise. * tests/test-ftello.c: Likewise. * tests/test-getdate.c: Likewise. * tests/test-getgroups.c: Likewise. * tests/test-gethostname.c: Likewise. * tests/test-quotearg.c: Likewise. * tests/test-version-etc.c: Likewise. * tests/test-xalloc-die.c: Likewise. * tests/test-xfprintf-posix.c: Likewise. * tests/test-xprintf-posix.c: Likewise. * tests/test-xvasprintf.c: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible 441aa304 2009-12-10T20:28:30 Use spaces for indentation, not tabs.
Bruno Haible 97b954ff 2009-10-28T00:51:42 Avoid warning despite dropping the return value of fwrite.
Jim Meyering b0144242 2008-11-29T17:42:45 unicodeio.c: mark unused parameters * lib/unicodeio.c (exit_failure_callback): Mark unused parameter. (fallback_failure_callback): Likewise.
Jim Meyering bae05e82 2008-11-12T15:27:38 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
Bruno Haible d1234705 2008-11-12T12:29:05 Don't duplicate a function defined elsewhere in gnulib.
Bruno Haible 57fdfd3f 2007-10-07T19:14:58 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible 99099106 2006-09-14T14:18:36 Include <config.h> unconditionally.
Bruno Haible cb72b5d9 2006-06-17T16:09:19 From Eric Blake: Assume errno.h declares errno.
Paul Eggert 267a39ba 2005-05-14T06:03:57 *** empty log message ***
Bruno Haible 57a1c061 2003-09-10T14:07:55 Assume ANSI C.
Paul Eggert 7dce93e9 2003-07-31T06:27:05 Fix comments to identify Solaris versions using the same version numbers that Sun does.
Paul Eggert d0723a16 2003-07-14T16:36:07 Switch from LGPL to GPL.
Bruno Haible f2ec12eb 2003-06-20T20:55:34 Assume ANSI C.
Bruno Haible 000ad744 2002-12-31T13:20:21 New file localcharset.h.
Bruno Haible b3228efa 2002-12-31T12:56:28 Make getline.h and unicodeio.h self-contained.
Bruno Haible f9fa25dc 2002-11-05T21:45:29 Include gettext.h instead of <libintl.h> with #ifdefs.
Jim Meyering 27dc63a5 2002-02-11T14:28:09 2002-02-02 Paul Eggert <eggert@twinsun.com> 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.
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.