From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#11786: Use c_strcasecmp for portable ASCII case-insensitive comparison Date: Tue, 26 Jun 2012 18:39:02 +0200 Message-ID: References: <4FE91370.2090706@cs.ucla.edu> <834npy9i43.fsf@gnu.org> <83y5na827k.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340728822 4856 80.91.229.3 (26 Jun 2012 16:40:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2012 16:40:22 +0000 (UTC) Cc: 11786@debbugs.gnu.org, eggert@cs.ucla.edu, dmantipov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 26 18:40:20 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 1SjYoM-00010G-9I for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jun 2012 18:40:18 +0200 Original-Received: from localhost ([::1]:37417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjYoM-0004FQ-6y for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jun 2012 12:40:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjYoB-0003ou-Uk for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 12:40:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjYo5-0000AR-RZ for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 12:40:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjYo5-00008b-OR for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 12:40:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SjYry-0000fc-TO for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 12:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jun 2012 16:44: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.13407289912504 (code B ref 11786); Tue, 26 Jun 2012 16:44:02 +0000 Original-Received: (at 11786) by debbugs.gnu.org; 26 Jun 2012 16:43:11 +0000 Original-Received: from localhost ([127.0.0.1]:58814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjYr9-0000eL-2P for submit@debbugs.gnu.org; Tue, 26 Jun 2012 12:43:11 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:49257) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjYr6-0000eD-Lx for 11786@debbugs.gnu.org; Tue, 26 Jun 2012 12:43:09 -0400 Original-Received: from frontend4.mail.m-online.net (unknown [192.168.8.183]) by mail-out.m-online.net (Postfix) with ESMTP id 3WMCd86kQsz3hj4m; Tue, 26 Jun 2012 18:39:07 +0200 (CEST) X-Auth-Info: Tf5ZO86yTLAUqYoy4nlMjDH4dFturWB9in0T2ub6GC8= Original-Received: from igel.home (ppp-88-217-113-177.dynamic.mnet-online.de [88.217.113.177]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WMCd334bZzbbn8; Tue, 26 Jun 2012 18:39:03 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 0A038CA2A3; Tue, 26 Jun 2012 18:39:02 +0200 (CEST) X-Yow: The Korean War must have been fun. In-Reply-To: <83y5na827k.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 26 Jun 2012 19:31:11 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) 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:61305 Archived-At: Eli Zaretskii writes: >> From: Andreas Schwab >> Cc: Paul Eggert , Dmitry Antipov , 11786@debbugs.gnu.org >> Date: Tue, 26 Jun 2012 18:25:03 +0200 >> >> Eli Zaretskii writes: >> >> > Can tolower fail for these, somehow, in a locale that uses a multibyte >> > encoding for these strings, and if so, can you give a practical >> > example of such a failure? >> >> tolower ('I') in a turkish locale. > > OK, but that's not an issue with multibyte locales. It's an issue with both tr_TR.ISO-8859-8 and tr_TR.UTF-8. In the former case you get a non-ASCII character, in the latter case you get an upper case character. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."