From: Matěj Cepl Date: Mon, 2 Jan 2012 20:57:56 +0000 (-0500) Subject: Generated libbe/_version.py was not UTF-8 aware. X-Git-Tag: 1.1.0~173 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=df1d1a41a9f92ee0554ff7eaf65e73e57efcd1ab;p=be.git Generated libbe/_version.py was not UTF-8 aware. So make failed for me (Matěj Cepl). Signed-off-by: Matěj Cepl --- diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/comments/82ea0c61-22e9-489d-a0bd-ea49afd3f6c5/body b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/comments/82ea0c61-22e9-489d-a0bd-ea49afd3f6c5/body new file mode 100644 index 0000000..f359659 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/comments/82ea0c61-22e9-489d-a0bd-ea49afd3f6c5/body @@ -0,0 +1,13 @@ +mitmanek:bugseverywhere (my_changes) $ make +git log -1 --date=short --pretty='format:"Autogenerated by make libbe/_version.py"%nversion_info = {%n "date":"%cd",%n "revision":"%H",%n "committer":"%cn"}%n' > libbe/_version.py +python setup.py build +Traceback (most recent call last): + File "setup.py", line 6, in + from libbe import _version + File "/home/matej/archiv/2011/projekty/bugseverywhere/libbe/_version.py", line 5 +SyntaxError: Non-ASCII character '\xc4' in file /home/matej/archiv/2011/projekty/bugseverywhere/libbe/_version.py on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details +make: *** [build] Error 1 +mitmanek:bugseverywhere (my_changes) $ exit + + +Script ukončen Po 2. leden 2012, 15:50:23 CET diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/comments/82ea0c61-22e9-489d-a0bd-ea49afd3f6c5/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/comments/82ea0c61-22e9-489d-a0bd-ea49afd3f6c5/values new file mode 100644 index 0000000..196118b --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/comments/82ea0c61-22e9-489d-a0bd-ea49afd3f6c5/values @@ -0,0 +1,8 @@ +Author: Matěj Cepl + + +Content-type: text/plain + + +Date: Mon, 02 Jan 2012 14:55:38 +0000 + diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/values new file mode 100644 index 0000000..7147fee --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/values @@ -0,0 +1,17 @@ +creator: Matěj Cepl + + +reporter: Matěj Cepl + + +severity: minor + + +status: fixed + + +summary: make crashes on non-ASCII committer + + +time: Mon, 02 Jan 2012 14:51:06 +0000 + diff --git a/Makefile b/Makefile index b64ce52..85f0f63 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,8 @@ clean: .PHONY: libbe/_version.py libbe/_version.py: - git log -1 --date=short --pretty='format:"Autogenerated by make libbe/_version.py"%nversion_info = {%n "date":"%cd",%n "revision":"%H",%n "committer":"%cn"}%n' > $@ + echo "# -*- coding: utf-8 -*-" > $@ + git log -1 --encoding=UTF-8 --date=short --pretty='format:"Autogenerated by make libbe/_version.py"%nversion_info = {%n "date":"%cd",%n "revision":"%H",%n "committer":"%cn"}%n' >> $@ .PHONY: man man: ${MANPAGE_FILES}