You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Maddes <ma...@arcor.de> on 2007/08/27 21:14:26 UTC

case-insensitive.py problems

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