X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fxml%2Fxmltok.c;h=daca383d01f1484e0993b05a6d6e9cc1c431a80e;hb=a1bb62f43c2f68a5ce4424f4d99f785b6d88bafe;hp=d106b1b3a904d3b1d61d1f348101259362c69aa4;hpb=89fcb12556007915089f13142905963b9a4c004d;p=simgear.git 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; }