From: Ben Pfaff Date: Sat, 26 Apr 2014 20:54:20 +0000 (-0700) Subject: sys-file-info: Add IBM850 and DIN_66003 encodings. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=fbaa01a45afaa56c8aa46a99ff95864beebe2237 sys-file-info: Add IBM850 and DIN_66003 encodings. Requested by Andre Müller: https://lists.gnu.org/archive/html/bug-gnu-pspp/2014-02/msg00036.html --- 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)