diff options
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 |