From b05d4be19d07a834120bac6bbeacca31daae51b9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 25 May 2009 12:42:17 +0100 Subject: [PATCH] Use GLib variant of strcasecmp() The GLib version of strcasecmp() ignores any non-ASCII character, unlike the original which is locale-dependent. --- clutter/glx/clutter-backend-glx.c | 2 +- clutter/glx/clutter-glx-texture-pixmap.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clutter/glx/clutter-backend-glx.c b/clutter/glx/clutter-backend-glx.c index edad15894..d9fef911d 100644 --- a/clutter/glx/clutter-backend-glx.c +++ b/clutter/glx/clutter-backend-glx.c @@ -219,7 +219,7 @@ clutter_backend_glx_constructor (GType gtype, static gboolean check_vblank_env (const char *name) { - if (clutter_vblank_name && !strcasecmp(clutter_vblank_name, name)) + if (clutter_vblank_name && !g_ascii_strcasecmp (clutter_vblank_name, name)) return TRUE; return FALSE; diff --git a/clutter/glx/clutter-glx-texture-pixmap.c b/clutter/glx/clutter-glx-texture-pixmap.c index 3c8393df6..b6a677a84 100644 --- a/clutter/glx/clutter-glx-texture-pixmap.c +++ b/clutter/glx/clutter-glx-texture-pixmap.c @@ -214,9 +214,9 @@ clutter_glx_texture_pixmap_init (ClutterGLXTexturePixmap *self) if ((rect_env = g_getenv ("CLUTTER_PIXMAP_TEXTURE_RECTANGLE"))) { - if (strcasecmp (rect_env, "force") == 0) + if (g_ascii_strcasecmp (rect_env, "force") == 0) _rectangle_state = CLUTTER_GLX_RECTANGLE_FORCE; - else if (strcasecmp (rect_env, "disable") == 0) + else if (g_ascii_strcasecmp (rect_env, "disable") == 0) _rectangle_state = CLUTTER_GLX_RECTANGLE_DISALLOW; else if (rect_env[0]) g_warning ("Unknown value for CLUTTER_PIXMAP_TEXTURE_RECTANGLE, "