sys-file-info: Add IBM850 and DIN_66003 encodings.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 26 Apr 2014 20:54:20 +0000 (13:54 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 26 Apr 2014 20:54:20 +0000 (13:54 -0700)
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

index 722b512cd78859902f68119129336dfbcb49cb26..f96fa167a5b98b6f9f6df393655e7663ee9d2aed 100644 (file)
@@ -764,10 +764,10 @@ display_vectors (const struct dictionary *dict, int sorted)
 \f
 /* 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)