From fbaa01a45afaa56c8aa46a99ff95864beebe2237 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 26 Apr 2014 13:54:20 -0700 Subject: [PATCH] sys-file-info: Add IBM850 and DIN_66003 encodings. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Requested by Andre Müller: https://lists.gnu.org/archive/html/bug-gnu-pspp/2014-02/msg00036.html --- src/language/dictionary/sys-file-info.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/language/dictionary/sys-file-info.c b/src/language/dictionary/sys-file-info.c index 722b512cd7..f96fa167a5 100644 --- a/src/language/dictionary/sys-file-info.c +++ b/src/language/dictionary/sys-file-info.c @@ -764,10 +764,10 @@ display_vectors (const struct dictionary *dict, int sorted) /* Encoding analysis. */ -/* This list of encodings is taken from http://encoding.spec.whatwg.org/, as - retrieved February 2014. Encodings not supported by glibc and encodings - relevant only to HTML have been removed. */ static const char *encoding_names[] = { + /* These encodings are from http://encoding.spec.whatwg.org/, as retrieved + February 2014. Encodings not supported by glibc and encodings relevant + only to HTML have been removed. */ "utf-8", "windows-1252", "iso-8859-2", @@ -800,6 +800,10 @@ static const char *encoding_names[] = { "iso-2022-jp", "shift_jis", "euc-kr", + + /* Added by user request. */ + "ibm850", + "din_66003", }; #define N_ENCODING_NAMES (sizeof encoding_names / sizeof *encoding_names) -- 2.30.2