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

case-insensitive.py problems

From: Maddes <maddes_svnlists_at_arcor.de>
Date: 2007-08-27 23:14:26 CEST

Hi everybody,

I wanted to use the "case-insensitive.py" precommit hook script on my
private Debian server (4.0 Etch). Found out that I need the
"python-subversion" Debian package for it.

But when I tested it I got the following error message:
>>>
Traceback (most recent call last):
  File "/usr/share/subversion/hook-scripts/case-insensitive.py", line
63, in ?
    locale.setlocale(locale.LC_ALL, 'en_GB')
  File "/usr/lib/python2.4/locale.py", line 381, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
<<<

The problem is that the only locale available on my Debian installation
is "de_DE.UTF-8".
I added the British locale to my system by following the instructions at
http://people.debian.org/~schultmc/locales.html and it worked.

But according to http://docs.python.org/lib/module-locale.html it would
be best to use
  locale.setlocale(locale.LC_ALL, '')
as this will use the user's locale. This way newbies won't have to deal
with missing locales.

I hope someone can change the hook script in the contribution section
accordingly.

Kind Regards
Matthias "Maddes" Buecher

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 28 05:17:10 2007

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

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