From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Using strcasecmp in xterm.c Date: Thu, 07 Dec 2006 10:09:09 +0100 Message-ID: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165482580 9915 80.91.229.10 (7 Dec 2006 09:09:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 09:09:40 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 07 10:09:38 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsFG2-0005fy-VK for ged-emacs-devel@m.gmane.org; Thu, 07 Dec 2006 10:09:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsFG2-0000oM-DG for ged-emacs-devel@m.gmane.org; Thu, 07 Dec 2006 04:09:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GsFFo-0000oB-TG for emacs-devel@gnu.org; Thu, 07 Dec 2006 04:09:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GsFFm-0000no-Qp for emacs-devel@gnu.org; Thu, 07 Dec 2006 04:09:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsFFm-0000nk-LP for emacs-devel@gnu.org; Thu, 07 Dec 2006 04:09:18 -0500 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GsFFm-0002GS-AZ for emacs-devel@gnu.org; Thu, 07 Dec 2006 04:09:18 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id 73014A5004A for ; Thu, 7 Dec 2006 10:09:17 +0100 (CET) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63400 Archived-At: In xterm.c, we use strcasecmp here: struct font_info * x_query_font (f, fontname) struct frame *f; register char *fontname; { struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); int i; for (i = 0; i < dpyinfo->n_fonts; i++) if (dpyinfo->font_table[i].name && (!strcasecmp (dpyinfo->font_table[i].name, fontname) || !strcasecmp (dpyinfo->font_table[i].full_name, fontname))) return (dpyinfo->font_table + i); return NULL; } Shouldn't this use xstricmp which is specifically defined to compare fontnames according to the comment in xfaces.c ? /* Like stricmp. Used to compare parts of font names which are in ISO8859-1. */ int xstricmp (s1, s2) -- Kim F. Storm http://www.cua.dk