From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#11786: Use c_strcasecmp for portable ASCII case-insensitive comparison Date: Tue, 26 Jun 2012 21:04:24 +0400 Message-ID: <4FE9EB98.7010702@yandex.ru> References: <4FE91370.2090706@cs.ucla.edu> <834npy9i43.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340730200 17703 80.91.229.3 (26 Jun 2012 17:03:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2012 17:03:20 +0000 (UTC) Cc: 11786@debbugs.gnu.org, Paul Eggert To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 26 19:03:19 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SjZAc-0005aK-FF for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jun 2012 19:03:18 +0200 Original-Received: from localhost ([::1]:50739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjZAc-0003pg-9U for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jun 2012 13:03:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjZAV-0003pX-97 for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 13:03:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjZAL-0001oT-Ce for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 13:03:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjZAL-0001ni-4G for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 13:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SjZEE-0001Bm-4N for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jun 2012 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 11786-submit@debbugs.gnu.org id=B11786.13407303704510 (code B ref 11786); Tue, 26 Jun 2012 17:07:02 +0000 Original-Received: (at 11786) by debbugs.gnu.org; 26 Jun 2012 17:06:10 +0000 Original-Received: from localhost ([127.0.0.1]:58834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjZDL-0001Ad-Jf for submit@debbugs.gnu.org; Tue, 26 Jun 2012 13:06:08 -0400 Original-Received: from forward17.mail.yandex.net ([95.108.253.142]:55924) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjZDI-0001AU-Cv for 11786@debbugs.gnu.org; Tue, 26 Jun 2012 13:06:06 -0400 Original-Received: from smtp18.mail.yandex.net (smtp18.mail.yandex.net [95.108.252.18]) by forward17.mail.yandex.net (Yandex) with ESMTP id 341E11061C63; Tue, 26 Jun 2012 21:02:01 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340730121; bh=5kW0mS3YrMV5xwcpfFkkfifYOvlTDkM47MWkOPRq0FA=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=TY1rNA39cZZGlortBqGmBBjengDRYej45gISZvUlWfzg1qbm3zMINUXWRep0nTX9l cYhbq6yMelkM3xpHanUnLI78abvanM0ru/wO9Ji4LTTPGYBelEGlC02Dm4kWhUgwmS wR7HWaHJhh03X3r0Ew9yeJxY9/NhBZEhV4nRSW0w= Original-Received: from smtp18.mail.yandex.net (localhost [127.0.0.1]) by smtp18.mail.yandex.net (Yandex) with ESMTP id 026C118A019A; Tue, 26 Jun 2012 21:02:00 +0400 (MSK) Original-Received: from 213-148-21-55.gelicon.ru (213-148-21-55.gelicon.ru [213.148.21.55]) by smtp18.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 20VCYmh9-20VaSCHr; Tue, 26 Jun 2012 21:02:00 +0400 X-Yandex-Rcpt-Suid: eliz@gnu.org X-Yandex-Rcpt-Suid: eggert@cs.ucla.edu X-Yandex-Rcpt-Suid: 11786@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340730120; bh=5kW0mS3YrMV5xwcpfFkkfifYOvlTDkM47MWkOPRq0FA=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=q3Wz2UTTtQD63l75p0Qplw2l4TbGOl5OtIQdeeb0WZU1aDps1mKW2VMxsRJ1XVnJN wsmqtoLrNgoxM9g8Qk93WplV18mWMyi07w/mOY8oE66hobSj4C/dY8w8Ss9KfbZHuD L8OA2kglV9GMvllgrx3TdsN4FfT7S+IIjbI9Lqvs= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <834npy9i43.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61306 Archived-At: On 06/26/2012 08:02 PM, Eli Zaretskii wrote: > First, until revision 108735, committed yesterday by Dmitry, we didn't > use strcasecmp or strncasecmp (except in the NS port, which looks like > an oversight). We used xtrcasecmp, whose only dependence on the > locale is the tolower function/macro. Then Dmitry replaced > xstrcasecmp with strcasecmp for those platforms that have it (which I > think means all the supported platforms), for reasons that AFAIK were > never discussed. Why was that done? 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). I assumed that these library functions, if available, should work correctly regardless from the locale on any non-ancient system. If that is not true, gnulib module may be a workaround. Dmitry