From: jmt Date: Mon, 28 Dec 2009 20:57:57 +0000 (+0000) Subject: XML encodings: support 'ASCII' as an alias for 'US-ASCII' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=51b0cf535e6c6259856ab8f52133601120ec5912;p=simgear.git XML encodings: support 'ASCII' as an alias for 'US-ASCII' --- diff --git a/simgear/xml/xmltok.c b/simgear/xml/xmltok.c index d106b1b3..daca383d 100644 --- a/simgear/xml/xmltok.c +++ b/simgear/xml/xmltok.c @@ -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; }