From 51b0cf535e6c6259856ab8f52133601120ec5912 Mon Sep 17 00:00:00 2001 From: jmt Date: Mon, 28 Dec 2009 20:57:57 +0000 Subject: [PATCH] XML encodings: support 'ASCII' as an alias for 'US-ASCII' --- simgear/xml/xmltok.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.5