summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/gitfile-info/gfi-run.py
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-07-14 21:38:17 +0000
committerKarl Berry <karl@freefriends.org>2016-07-14 21:38:17 +0000
commit71d433e6039c736a93e0dfeb0e90d058ddc6fc60 (patch)
tree92be248a8eaa4b023fa3f921fd79f1da56e73e03 /Master/texmf-dist/doc/support/gitfile-info/gfi-run.py
parent3502b6b709295037d367cdd7ccd0795f027d095f (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/gfi-run.py')
-rw-r--r--Master/texmf-dist/doc/support/gitfile-info/gfi-run.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/support/gitfile-info/gfi-run.py b/Master/texmf-dist/doc/support/gitfile-info/gfi-run.py
index 93806bf53ba..e39bb9459a2 100644
--- a/Master/texmf-dist/doc/support/gitfile-info/gfi-run.py
+++ b/Master/texmf-dist/doc/support/gitfile-info/gfi-run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# -*- mode:python -*-
import os
@@ -9,7 +9,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