[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

resolve the unicode problem of mod_authz_svn apache mod

From: L mice <hehaoslj_at_gmail.com>
Date: 2006-04-01 15:23:51 CEST

http://groups.google.com/group/Subversion-SVN/browse_thread/thread/004ccca5905606e5/ba247834183293bd#ba247834183293bd

here is my change:
[mod_authz_svn.c]
//add declare
//++
extern
svn_error_t *
svn_utf_cstring_from_utf8 (const char **dest,
                           const char *src,
                           apr_pool_t *pool);

//in function req_check_access
//add declare
//++
char* curi;
svn_error_t* convert_error;

//add before any call
//++
convert_error=svn_utf_cstring_from_utf8(&curi,r->uri,r->pool);
   if (convert_error)
   {
           curi = apr_pstrdup(r->pool, r->uri);
   }

//change r->uri to curi

dav_err = dav_svn_split_uri(r,
                                curi,//r->uri,
                                conf->base_path,
                                &cleaned_uri,
                                &trailing_slash,
                                &repos_name,
                                &relative_path,
                                &repos_path);
Received on Wed Apr 5 00:13:03 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.