]> git.mxchange.org Git - simgear.git/commitdiff
XML encodings: support 'ASCII' as an alias for 'US-ASCII'
authorjmt <jmt>
Mon, 28 Dec 2009 20:57:57 +0000 (20:57 +0000)
committerTim Moore <timoore33@gmail.com>
Tue, 29 Dec 2009 22:53:28 +0000 (23:53 +0100)
simgear/xml/xmltok.c

index d106b1b3a904d3b1d61d1f348101259362c69aa4..daca383d01f1484e0993b05a6d6e9cc1c431a80e 100644 (file)
@@ -1365,6 +1365,10 @@ int getEncodingIndex(const char *name)
   for (i = 0; i < sizeof(encodingNames)/sizeof(encodingNames[0]); i++)
     if (streqci(name, encodingNames[i]))
       return i;
+      
+  if (streqci(name, "ASCII"))
+    return US_ASCII_ENC;
+    
   return UNKNOWN_ENC;
 }