Ok, found the %FF%FF problem. Simple signed vs unsigned char kind of
thing. Patch below.
// Marcus
Index: subversion/libsvn_subr/path.c
===================================================================
--- subversion/libsvn_subr/path.c
+++ subversion/libsvn_subr/path.c Sat Jul 20 18:50:19 2002
@@ -784,7 +784,7 @@
alphanum | mark | ":" | "@" | "&" | "=" | "+" | "$" | ","
*/
static svn_boolean_t
-char_is_uri_safe (char c)
+char_is_uri_safe (int c)
{
/* Is this an alphanumeric character? */
if (((c >= 'A') && (c <='Z'))
@@ -807,7 +807,7 @@
apr_size_t i;
for (i = 0; path[i]; i++)
- if (! char_is_uri_safe (path[i]))
+ if (! char_is_uri_safe ((unsigned char)path[i]))
return FALSE;
return TRUE;
@@ -819,7 +819,7 @@
{
svn_stringbuf_t *retstr;
apr_size_t i, copied = 0;
- char c;
+ int c;
if (! path)
return NULL;
@@ -827,7 +827,7 @@
retstr = svn_stringbuf_create ("", pool);
for (i = 0; path[i]; i++)
{
- c = path[i];
+ c = (unsigned char)path[i];
if (char_is_uri_safe (c))
continue;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 20 18:58:04 2002