[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get isblank?
From: |
Eric Blake |
Subject: |
Re: How to get isblank? |
Date: |
Tue, 06 Oct 2009 18:46:57 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bruno Haible on 10/6/2009 3:15 PM:
>> Sorry if I'm being dense, but perhaps there's an opportunity for
>> clarification here?
>
> The relevant documentation in gnulib for this function is in the file
> doc/posix-functions/isblank.texi:
>
> The reasons include:
>
> 1) No one asked for it so far.
>
> 2) On all known platforms, in all predefined locales, isblank(c) is likely
> equivalent with (c == ' ' || c == '\t'). Look at the glibc definition
> (in glibc/localedata/locales/i18n): The "blank" characters are
> '\t', ' ', U+1680, U+180E, U+2000..U+2006, U+2008..U+200A, U+205F,
> U+3000,
> and none except the two is present in a common 8-bit encoding.
>
> So instead of using this function, with platform dependent semantics, most
> programs will either want the pure ASCII version (c_isblank) or the Unicode
> aware version (uc_is_blank).
Can we add a summary of this logic to the isblank.texi documentation, to
point people to better replacements?
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkrL5QEACgkQ84KuGfSFAYB++ACfXAqOnOFrR5TlNi/F7c/OG6rT
auwAoImJ+wf5frICc+aWL8va82UnekgT
=JW9n
-----END PGP SIGNATURE-----
- How to get isblank?, Reuben Thomas, 2009/10/06
- Re: How to get isblank?, Bruno Haible, 2009/10/06
- Re: How to get isblank?, Reuben Thomas, 2009/10/06
- Re: How to get isblank?,
Eric Blake <=
- Re: How to get isblank?, Reuben Thomas, 2009/10/15
- Re: How to get isblank?, Bruno Haible, 2009/10/18
- new module ctype, Bruno Haible, 2009/10/18
- Re: new module ctype, Eric Blake, 2009/10/18
- Re: ctype functions with char argument, Bruno Haible, 2009/10/18
- new module isblank, Bruno Haible, 2009/10/18
- Re: How to get isblank?, Bruno Haible, 2009/10/18
- Re: How to get isblank?, Reuben Thomas, 2009/10/18