16 lines
657 B
Plaintext
16 lines
657 B
Plaintext
$OpenBSD: patch-Examples_Client_svn_cmd_py,v 1.2 2013/10/10 09:56:32 stsp Exp $
|
|
|
|
LC_ALL only works for single-byte locales on OpenBSD.
|
|
|
|
--- Examples/Client/svn_cmd.py.orig Sun Aug 4 15:54:30 2013
|
|
+++ Examples/Client/svn_cmd.py Wed Oct 9 15:29:28 2013
|
|
@@ -81,7 +81,7 @@ def initLocale():
|
|
locale.setlocale( locale.LC_ALL, '%s.%s' % (language_code, encoding) )
|
|
except locale.Error:
|
|
# force a locale that will work
|
|
- locale.setlocale( locale.LC_ALL, 'en_GB.UTF-8' )
|
|
+ locale.setlocale( locale.LC_ALL, 'C' )
|
|
|
|
def fmtDateTime( t ):
|
|
return time.strftime( '%d-%b-%Y %H:%M:%S', time.localtime( t ) )
|