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

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

From: Marcus Comstedt <marcus_at_mc.pp.se>
Date: 2002-08-01 03:13:05 CEST

Greg Stein <gstein@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
Received on Thu Aug 1 03:26:19 2002

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.