public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-6282] gcc-changelog: add Unicode test-case
@ 2020-12-21 9:21 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2020-12-21 9:21 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2ebe7526584ed81d70d004d4fd527ef86af367c3
commit r11-6282-g2ebe7526584ed81d70d004d4fd527ef86af367c3
Author: Martin Liska <mliska@suse.cz>
Date: Mon Dec 21 10:20:49 2020 +0100
gcc-changelog: add Unicode test-case
contrib/ChangeLog:
* gcc-changelog/test_email.py: New test.
* gcc-changelog/test_patches.txt: Likewise.
Diff:
---
contrib/gcc-changelog/test_email.py | 4 ++++
contrib/gcc-changelog/test_patches.txt | 28 ++++++++++++++++++++++++++++
2 files changed, 32 insertions(+)
diff --git a/contrib/gcc-changelog/test_email.py b/contrib/gcc-changelog/test_email.py
index 8f5129edb12..7ba2fcf757e 100755
--- a/contrib/gcc-changelog/test_email.py
+++ b/contrib/gcc-changelog/test_email.py
@@ -395,3 +395,7 @@ class TestGccChangelog(unittest.TestCase):
err = email.errors[0]
assert err.message == "pattern doesn't match any changed files"
assert err.line == 'libstdc++-v3/testsuite/28_regex_not-existing/'
+
+ def test_unicode_chars_in_filename(self):
+ email = self.from_patch_glob('0001-Add-horse.patch')
+ assert not email.errors
diff --git a/contrib/gcc-changelog/test_patches.txt b/contrib/gcc-changelog/test_patches.txt
index 02ce28d20b8..bc93cce1fa7 100644
--- a/contrib/gcc-changelog/test_patches.txt
+++ b/contrib/gcc-changelog/test_patches.txt
@@ -3344,3 +3344,31 @@ index f51453f019a..d10ecf483f4 100644
+
--
2.29.2
+
+=== 0001-Add-horse.patch ===
+From 2884248d07e4e2c922e137365253e2e521c425b0 Mon Sep 17 00:00:00 2001
+From: Martin Liska <mliska@suse.cz>
+Date: Mon, 21 Dec 2020 10:14:46 +0100
+Subject: [PATCH] Add horse.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+ChangeLog:
+
+ * koníček.txt: New file.
+---
+ koníček.txt | 1 +
+ 1 file changed, 1 insertion(+)
+ create mode 100644 koníček.txt
+
+diff --git a/koníček.txt b/koníček.txt
+new file mode 100644
+index 00000000000..56c67f58752
+--- /dev/null
++++ b/koníček.txt
+@@ -0,0 +1 @@
++I'm a horse.
+--
+2.29.2
+
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-21 9:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 9:21 [gcc r11-6282] gcc-changelog: add Unicode test-case Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).