Generated libbe/_version.py was not UTF-8 aware.
authorMatěj Cepl <mcepl@redhat.com>
Mon, 2 Jan 2012 20:57:56 +0000 (15:57 -0500)
committerChris Ball <cjb@laptop.org>
Mon, 2 Jan 2012 20:57:56 +0000 (15:57 -0500)
So make failed for me (Matěj Cepl).

Signed-off-by: Matěj Cepl <mcepl@redhat.com>
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/comments/82ea0c61-22e9-489d-a0bd-ea49afd3f6c5/body [new file with mode: 0644]
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/comments/82ea0c61-22e9-489d-a0bd-ea49afd3f6c5/values [new file with mode: 0644]
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/cff7fdc9-6b4d-4efc-9a35-c5dbda66b9c8/values [new file with mode: 0644]
Makefile

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 (file)
index 0000000..f359659
--- /dev/null
@@ -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 <module>
+    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 (file)
index 0000000..196118b
--- /dev/null
@@ -0,0 +1,8 @@
+Author: Matěj Cepl <mcepl@redhat.com>
+
+
+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 (file)
index 0000000..7147fee
--- /dev/null
@@ -0,0 +1,17 @@
+creator: Matěj Cepl <mcepl@redhat.com>
+
+
+reporter: Matěj Cepl <mcepl@redhat.com>
+
+
+severity: minor
+
+
+status: fixed
+
+
+summary: make crashes on non-ASCII committer
+
+
+time: Mon, 02 Jan 2012 14:51:06 +0000
+
index b64ce5224931d4b3d7fd2bb1111a0b3628b14459..85f0f639d272c590e12a1bf3c238d75c08423d02 100644 (file)
--- 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}