commit:     cf6dec915f7e66ae241fadb7f42710d01ed00171
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  1 20:29:39 2017 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Mar  1 20:42:11 2017 +0000
URL:        https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=cf6dec91

ebuild-test/file-utf8: New test, ebuild in encoding other than utf-8.

This crashes repoman-2.3.1 (Python 3.4) with a UnicodeDecodeError.

 ebuild-test/file-utf8/file-utf8-0.ebuild | 11 +++++++++++
 ebuild-test/file-utf8/metadata.xml       | 26 ++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/ebuild-test/file-utf8/file-utf8-0.ebuild 
b/ebuild-test/file-utf8/file-utf8-0.ebuild
new file mode 100644
index 0000000..613d154
--- /dev/null
+++ b/ebuild-test/file-utf8/file-utf8-0.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Ebuild in iso-8859-1 �n��d��g"
+HOMEPAGE="http://example.com/";
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"

diff --git a/ebuild-test/file-utf8/metadata.xml 
b/ebuild-test/file-utf8/metadata.xml
new file mode 100644
index 0000000..da7c4a8
--- /dev/null
+++ b/ebuild-test/file-utf8/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<!--
+# $Id$
+
+This is the example metadata file.
+The root element of this file is <pkgmetadata>. Within this element a
+number of subelements are allowed, the most common being maintainer.
+
+For a full description look at:
+https://devmanual.gentoo.org/ebuild-writing/misc-files/metadata/
+
+Before committing, please remove the comments from this file. They are
+not relevant for general metadata.xml files.
+-->
+<pkgmetadata>
+<maintainer type="person">
+       <email>example...@gentoo.org</email>
+       <description>Primary maintainer</description>
+</maintainer>
+<maintainer type="project">
+       <email>exampleproj...@gentoo.org</email>
+       <name>Gentoo Example Project</name>
+</maintainer>
+<longdescription>Test for ???</longdescription>
+</pkgmetadata>

Reply via email to