diff mbox

[COMMITTED] auto-changelog: Remove latin1 from codecs

Message ID 20190926190654.29329-1-siddhesh@gotplt.org
State Committed
Headers show

Commit Message

Siddhesh Poyarekar Sept. 26, 2019, 7:06 p.m. UTC
Bruno Haible had pointed out that latin1 is a subset of cp1252 and is
hence redundant.  I forgot to remove it back then.
---
 ChangeLog                             | 5 +++++
 scripts/vcs_to_changelog/misc_util.py | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/ChangeLog b/ChangeLog
index 01a567d7b5..bb53a33e68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@ 
+2019-09-26  Siddhesh Poyarekar  <siddhesh@gotplt.org>
+
+	* scripts/vcs_to_changelog/misc_util.py (decode): Remove latin1
+	from codecs.
+
 2019-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* rt/Makefile (CFLAGS-clock_nanosleep.c): Move to ...
diff --git a/scripts/vcs_to_changelog/misc_util.py b/scripts/vcs_to_changelog/misc_util.py
index 51632f6f4a..b425bec300 100644
--- a/scripts/vcs_to_changelog/misc_util.py
+++ b/scripts/vcs_to_changelog/misc_util.py
@@ -40,7 +40,7 @@  def decode(string):
     Decode a string read from the source file.  The multiple attempts are needed
     due to the presence of the page break characters and some tests in locales.
     '''
-    codecs = ['utf8', 'latin1', 'cp1252']
+    codecs = ['utf8', 'cp1252']
 
     for i in codecs:
         try: