summaryrefslogtreecommitdiff
path: root/lib/mbswidth.c
Commit message (Collapse)AuthorAgeFilesLines
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2018-01-011-1/+1
|
* all: prefer https: URLsPaul Eggert2017-09-131-1/+1
|
* version-etc: new yearPaul Eggert2017-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* version-etc: new yearPaul Eggert2016-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* version-etc: new yearPaul Eggert2014-12-311-1/+1
| | | | | | * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
* maint: update copyrightEric Blake2014-01-011-1/+1
| | | | | | I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: update all copyright year number rangesEric Blake2013-01-011-1/+1
| | | | | | Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* wcswidth, mbswidth: Avoid integer overflow.Bruno Haible2011-03-121-8/+34
| | | | | | | | * lib/wcswidth.c: Include <limits.h>. * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow. * lib/mbswidth.c: Include <limits.h>. (mbsnwidth): Avoid 'int' overflow. Reported by Jim Meyering.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* update nearly all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
* update nearly all FSF copyright year lists to include 2009Jim Meyering2009-12-291-1/+1
| | | | | | | | | | | | | | | | | | The files named by the following are exempted: grep -v '^#' config/srclist.txt|grep -v '^$' \ | while read src dst; do test -f "$dst" && { echo "$dst"; continue; } test -d "$dst" || continue echo "$dst"/$(basename "$src") done > exempt git ls-files tests/unictype >> exempt In the remaining files, convert to all-interval notation if - there is already at least one year interval like 2000-2003 - the file is maintained by me - the file is in lib/uni*/, where that style already prevails Otherwise, use update-copyright's default.
* Use spaces for indentation, not tabs.Bruno Haible2009-12-101-89/+89
|
* Remove HAVE_MBRTOWC conditionals. Use mbrtowc unconditionally.Bruno Haible2008-12-221-9/+1
|
* Change copyright notice from GPLv2+ to GPLv3+.Bruno Haible2007-10-071-5/+4
|
* Remove the wcwidth.h file. Move wcwidth's declaration to wchar_.h.Bruno Haible2007-07-071-4/+1
|
* * modules/fnmatch (Depends-on): Depend on wchar.Eric Blake2007-01-161-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>. * m4/fnmatch.m4: Likewise. * modules/mbchar (Makefile.am): Assume <wchar.h>. * m4/mbchar.m4: Likewise. * modules/mbswidth (Depends-on): Depend on wchar. * lib/mbswidth.c: Assume <wchar.h>. * m4/mbswidth.m4: Likewise. * modules/quotearg (Depends-on): Depend on wchar. * lib/quotearg.c: Assume <wchar.h>. * m4/quotearg.m4: Likewise. * modules/regex (Depends-on): Depend on wchar. * lib/regex_internal.h: Assume <wchar.h>. * m4/regex.m4: Likewise. * modules/stdint (Depends-on): Depend on wchar. * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>. * m4/stdint.m4: Likewise. * tests/test-stdint.c [HAVE_WINT_T]: Likewise. * modules/strftime (Depends-on): Depend on wchar. * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>. * modules/strtol (Depends-on): Depend on wchar. * lib/strtol.c: Assume <wchar.h>. * modules/wcwidth (Depends-on): Depend on wchar. * lib/wcwidth.h: Assume <wchar.h>. * m4/wcwidth.m4: Likewise.
* * lib/mbchar.h: Just include <wctype.h>; the wctype modulePaul Eggert2006-12-271-6/+1
| | | | | | | | | | | | | handles its gotchas now. * lib/mbswidth.c: Likewise. * lib/wcwidth.h: Likewise. * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h and iswcntrl; the wctype module does this stuff now. * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise. * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise. * modules/mbchar (Depends-on): Add wctype. * modules/mbswidth (Depends-on): Likewise. * modules/wcwidth (Depends-on): Likewise.
* Include <config.h> unconditionally.Bruno Haible2006-09-141-3/+1
|
* Assume an ASCII compatible wide character encoding.Bruno Haible2006-07-281-1/+1
|
* Assume ANSI C.Bruno Haible2006-07-041-14/+2
|
* Fixes after wcwidth module creation.Bruno Haible2006-06-281-1/+15
|
* * mbchar.h (wcwidth): Include wcwidth.h.Eric Blake2006-06-281-32/+3
| | | | | * mbswidth.c (wcwidth): Move from here... * wcwidth.h: ...to this new file.
* *** empty log message ***Paul Eggert2005-05-141-1/+1
|
* Add comment about possible integer overflow.Bruno Haible2005-04-111-3/+5
|
* Use British English, not German English.Bruno Haible2004-11-081-1/+1
|
* Fix portability problem with Tru64 and BSD/OS.Bruno Haible2004-03-181-1/+7
|
* Fix comments to identify Solaris versions using the same versionPaul Eggert2003-07-311-1/+1
| | | | numbers that Sun does.
* Standard specification idiom. Make mbswidth.h self contained.Bruno Haible2002-11-191-2/+3
|
* Move to ANSI C.Bruno Haible2002-11-191-8/+3
|
* Don't include <limits.h>.Jim Meyering2001-08-041-25/+35
| | | | | | | | | Include <stdlib.h> and <string.h> unconditionally. (iswcntrl, mbsinit, ISCNTRL): New macros. (mbsnwidth): Use K&R style function declarations. Don't bother checking for MB_LEN_MAX == 1, since the compiler can optimize it when MB_CUR_MAX == 1. The width of control characters is zero, not 1.
* (mbrtowc, mbsinit):Jim Meyering2001-02-171-6/+0
| | | | | | Remove workaround macros for hosts that have mbrtowc but not mbstate_t, as we now insist on proper declarations for both before using mbrtowc.
* (mbsnwidth): Don't loop endlessly when called with anJim Meyering2000-12-081-2/+10
| | | | invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
* Rename ISASCII to IN_CTYPE_DOMAIN.Jim Meyering2000-09-091-5/+3
|
* (mbswidth): Add a flags argument.Jim Meyering2000-07-241-18/+39
| | | | (mbsnwidth): New function.
* (_XOPEN_SOURCE): Don't define; this causes problems on Solaris 7.Jim Meyering2000-07-241-8/+13
| | | | (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
* from Bruno Haible.Jim Meyering2000-07-171-0/+181