diff options
author | Karl Berry <karl@freefriends.org> | 2016-07-14 21:38:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-07-14 21:38:17 +0000 |
commit | 71d433e6039c736a93e0dfeb0e90d058ddc6fc60 (patch) | |
tree | 92be248a8eaa4b023fa3f921fd79f1da56e73e03 /Master/texmf-dist/doc/support/gitfile-info/post-commit.py | |
parent | 3502b6b709295037d367cdd7ccd0795f027d095f (diff) |
gitfile-info (14jul16)
git-svn-id: svn://tug.org/texlive/trunk@41693 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/gitfile-info/post-commit.py')
-rw-r--r-- | Master/texmf-dist/doc/support/gitfile-info/post-commit.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/support/gitfile-info/post-commit.py b/Master/texmf-dist/doc/support/gitfile-info/post-commit.py index 4f9a7aa2dd6..832b0750d26 100644 --- a/Master/texmf-dist/doc/support/gitfile-info/post-commit.py +++ b/Master/texmf-dist/doc/support/gitfile-info/post-commit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # -*- mode:python -*- import os @@ -8,7 +8,13 @@ from git import Repo import locale # Locales for date set up to de_DE # Please edit to you needs -locale.setlocale(locale.LC_ALL, 'de_DE') +try: + locale.setlocale(locale.LC_ALL, 'de_DE.utf8') +except: + try: + locale.setlocale(locale.LC_ALL, 'de_DE') + except: + print ("Fehler: bitte prüfen Sie das Ergebnis von 'locale -d' und fügen es in das Script ein.") # set up the git repo # path is the current working directory |