From 40e9194342c0d709e31dfeb93fb3193104f215fd Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Sun, 26 Mar 2000 03:53:58 +0200
Subject: [PATCH] Use locale independent string comparison for switch order.

Rev: src/array.c:1.63
---
 src/array.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/array.c b/src/array.c
index 77d706a009..b6b7250188 100644
--- a/src/array.c
+++ b/src/array.c
@@ -23,7 +23,7 @@
 #include "stuff.h"
 #include "bignum.h"
 
-RCSID("$Id: array.c,v 1.62 2000/03/07 21:23:41 hubbe Exp $");
+RCSID("$Id: array.c,v 1.63 2000/03/26 01:53:58 mast Exp $");
 
 struct array empty_array=
 {
@@ -700,7 +700,7 @@ static int switch_svalue_cmpfun(struct svalue *a, struct svalue *b)
     return 0;
 
   case T_STRING:
-    return my_strcmp(a->u.string, b->u.string);
+    return my_quick_strcmp(a->u.string, b->u.string);
     
   default:
     return set_svalue_cmpfun(a,b);
@@ -772,6 +772,10 @@ INT32 *get_set_order(struct array *a)
 
 /*
  * return an 'order' suitable for switches.
+ *
+ * Note: This is used by encode_value_canonic(). It must keep the
+ * sorting rules for all the types that function allows in multiset
+ * and mapping indices.
  */
 INT32 *get_switch_order(struct array *a)
 {
-- 
GitLab