Hi

There was of course a deliberate mistake in that patch.

This should be better.

--- service/web_services.py.orig        2010-10-08 11:04:09.000000000 +0100
+++ service/web_services.py     2010-10-08 11:46:11.000000000 +0100
@@ -65,7 +65,8 @@
         self._pg_psw_env_var_is_set = False # on win32, pg_dump need
the PGPASSWORD env var
 
     def _create_empty_database(self, name):
-        if re.search('utf|UTF', locale.getdefaultlocale()[1]):
+        localecode =  locale.getdefaultlocale()[1] or ""
+        if re.search('utf|UTF', localecode):
             db_encoding = 'unicode'
         else:
             db_encoding = 'LATIN1'


Sorry about that.


Cheers.
-- 
Roger.                          Home| http://www.sandman.uklinux.net/
Master of Peng Shui.      (Ancient oriental art of Penguin Arranging)
Work|Independent Sys Consultant | http://www.computer-surgery.co.uk/
 New key Fpr: 0F2F E1DF 4CD2 5E7B EF9F  B173 4CFA F143 ADBE 6B00 



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to