all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using strcasecmp in xterm.c
@ 2006-12-07  9:09 Kim F. Storm
  2006-12-07 11:16 ` Kenichi Handa
  0 siblings, 1 reply; 5+ messages in thread
From: Kim F. Storm @ 2006-12-07  9:09 UTC (permalink / raw)



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 <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-08  1:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07  9:09 Using strcasecmp in xterm.c Kim F. Storm
2006-12-07 11:16 ` Kenichi Handa
2006-12-07 13:06   ` Kim F. Storm
2006-12-08  1:02     ` Kenichi Handa
2006-12-07 21:41   ` Eli Zaretskii

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.