bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question concerning c-ctype, c-strcase, c-strcasestr and c-strstr mo


From: Eric Blake
Subject: Re: Question concerning c-ctype, c-strcase, c-strcasestr and c-strstr modules
Date: Fri, 15 Sep 2006 05:51:18 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Yoann Vandoorselaere on 9/15/2006 5:40 AM:
> 
> I recall platform missing strcasestr, although I can't remember which.
> Anyway, what's the purpose of these modules if they are not used
> anywhere ?

The c_* modules ARE used, particularly in gettext, in situations where
locales do work and strcasestr honors locales at the expense of extra
processor utilization.  The point of Bruno's modules is that sometimes you
_want_ LC_ALL=C semantics, but without having to change the locale and
restore it afterwards.

However, if we have a platform missing strcasestr, then using c_strcasestr
as the substitute implementation is probably okay, because that platform
would probably be broken in other areas, such as locale support, such that
a locale-aware replacement strcasestr would not be worth the effort.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFCpO284KuGfSFAYARAvv5AKCAMJ6L7L72mpvHTFe5JAw1ARKyLQCeMSac
1T7boNzDv5uNBBntwyRLiGA=
=tdkU
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]