From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: 11786@debbugs.gnu.org, eggert@cs.ucla.edu
Subject: bug#11786: Use c_strcasecmp for portable ASCII case-insensitive comparison
Date: Tue, 26 Jun 2012 20:16:25 +0300 [thread overview]
Message-ID: <83txxy8046.fsf@gnu.org> (raw)
In-Reply-To: <4FE9EB98.7010702@yandex.ru>
> Date: Tue, 26 Jun 2012 21:04:24 +0400
> From: Dmitry Antipov <dmantipov@yandex.ru>
> CC: Paul Eggert <eggert@cs.ucla.edu>, 11786@debbugs.gnu.org
>
> It was an attempt to get rid from the zoo of strcase(n)cmp implementations
> (one in etags.c, one in lwlib.c and next one in xfaces.c).
Thanks for the explanation.
I was talking only about xtrcasecmp, defined on xfaces.c. lwlib.c can
use it, if we want. As for etags, I don't care much, but pulling in
another bunch of gnulib modules just for its sake sounds gross to me.
> I assumed that these library functions, if available, should work
> correctly regardless from the locale on any non-ancient system.
It's actually the other way around: to DTRT, these library functions
_must_ be locale-dependent, because the collation sequence might be
different in each locale, even for locales that use the same Latin
characters.
> If that is not true, gnulib module may be a workaround.
We already had a workaround for that, so I see no reason to use that
of gnulib.
prev parent reply other threads:[~2012-06-26 17:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 1:42 bug#11786: Use c_strcasecmp for portable ASCII case-insensitive comparison Paul Eggert
2012-06-26 16:02 ` Eli Zaretskii
2012-06-26 16:25 ` Andreas Schwab
2012-06-26 16:31 ` Eli Zaretskii
2012-06-26 16:39 ` Andreas Schwab
2012-06-26 17:25 ` Paul Eggert
2012-06-26 18:21 ` Eli Zaretskii
2012-06-26 20:28 ` Paul Eggert
2012-07-06 21:14 ` Paul Eggert
2012-06-26 17:04 ` Dmitry Antipov
2012-06-26 17:16 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83txxy8046.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=11786@debbugs.gnu.org \
--cc=dmantipov@yandex.ru \
--cc=eggert@cs.ucla.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.