[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: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2007-04-24 11:04:05 CEST

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?

Regards,
Malcolm

  • application/pgp-signature attachment: stored
Received on Tue Apr 24 11:04:16 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.