Author: miguel
Date: 2006-09-18 05:45:24 -0400 (Mon, 18 Sep 2006)
New Revision: 65567

Modified:
   trunk/mono/eglib/src/gstr.c
   trunk/mono/eglib/test/string-util.c
Log:
Add more tests, fix a bug

Modified: trunk/mono/eglib/src/gstr.c
===================================================================
--- trunk/mono/eglib/src/gstr.c 2006-09-18 09:18:01 UTC (rev 65566)
+++ trunk/mono/eglib/src/gstr.c 2006-09-18 09:45:24 UTC (rev 65567)
@@ -371,7 +371,7 @@
        if ((c >= '@' && c <= 'Z') ||
            (c >= 'a' && c <= 'z') ||
            (c >= '&' && c < 0x3b) ||
-           (c == '!') || (c == '$') || (c == '_') || c == '=')
+           (c == '!') || (c == '$') || (c == '_') || (c == '=') || (c == '~'))
                return FALSE;
        return TRUE;
 }

Modified: trunk/mono/eglib/test/string-util.c
===================================================================
--- trunk/mono/eglib/test/string-util.c 2006-09-18 09:18:01 UTC (rev 65566)
+++ trunk/mono/eglib/test/string-util.c 2006-09-18 09:45:24 UTC (rev 65567)
@@ -187,8 +187,14 @@
        urit ("/\303\241", "file:///%C3%A1");
        urit ("/\303\241/octal", "file:///%C3%A1/octal");
        urit ("/%", "file:///%25");
-       urit 
("/\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032",
 
"file:///%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A");
-       
+       urit 
("/\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040",
 
"file:///%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20");
+       urit ("/!$&'()*+,-./", "file:///!$&'()*+,-./");
+       urit ("/\042\043\045", "file:///%22%23%25");
+       urit ("/0123456789:=", "file:///0123456789:=");
+       urit ("/\073\074\076\077", "file:///%3B%3C%3E%3F");
+       urit ("/\133\134\135\136_\140\173\174\175", 
"file:///%5B%5C%5D%5E_%60%7B%7C%7D");
+       urit ("/\173\174\175\176\177\200", "file:///%7B%7C%7D~%7F%80");
+       urit ("/@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 
"file:///@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
        errit ("a");
        errit ("./hola");
        

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to