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

Re: svn commit: r24721 - trunk/tools/server-side

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-04-24 17:48:34 CEST

On Tue, 24 Apr 2007, Malcolm Rowe wrote:

> On Mon, Apr 23, 2007 at 11:54:06AM -0700, dlr@tigris.org wrote:
> > Inform Python to use a UTF character set, since the $LastChangedDate$
> > keyword is expanded to non-ASCII characters in environments with
> > multi-byte character sets.
> >
> > --- trunk/tools/server-side/fsfs-reshard.py (original)
> > +++ trunk/tools/server-side/fsfs-reshard.py Mon Apr 23 11:54:05 2007
> > @@ -1,4 +1,5 @@
> > #!/usr/bin/env python
> > +# -*- coding: utf-8 -*-
> > #
> > # fsfs-reshard.py REPOS_PATH MAX_FILES_PER_SHARD
> > #
> >
>
> Ah, I didn't realise Python actually interpreted those comments as well.
>
> However: how do we know that the user's locale is UTF-8?

No, but it has a much better chance of working than plain ASCII (which
is a subset of UTF-8).

  • application/pgp-signature attachment: stored
Received on Tue Apr 24 17:49:10 2007

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.