You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Marcus Comstedt <ma...@mc.pp.se> on 2002/08/01 01:13:05 UTC

Re: [PATCH] Sort path names with strcoll(3)

Greg Stein <gs...@lyra.org> writes:

> On Sat, Jul 27, 2002 at 04:37:06AM +0200, Branko Cibej wrote:
> > epg@pretzelnet.org wrote:
> > >I noticed svn ls output wasn't sorted according to locale information,
> > >so i patched svn_path_compare_paths_nts to use strcoll(3).  The results:
> 
> I believe that should be apr_strnatcmp() or apr_strnatcasecmp().

Also, care should be taken that the names are converted from UTF-8 to
the native character encoding _before_ those functions are used to
sort the strings.  Otherwise it could get really strange...  :-)


  // Marcus



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org