a37a080307
to avoid a known bug.) - Fix build with clang for vdr and plugins, and also fix a few bugs it uncovered. - Bump PORTREVISION for all plugins.
207 lines
12 KiB
Text
207 lines
12 KiB
Text
--- a/misc/util.cpp
|
||
+++ b/misc/util.cpp
|
||
@@ -331,105 +331,105 @@ const char* escapeXMLCharacters(const ch
|
||
for(unsigned int i = 0; i < strlen(Data); i++){
|
||
Char = Data[i];
|
||
switch(Char){
|
||
- case L'€': NewData += "€"; break;
|
||
- case L'"': NewData += """; break;
|
||
- case L'&': NewData += "&"; break;
|
||
- case L'<': NewData += "<"; break;
|
||
- case L'>': NewData += ">"; break;
|
||
- case L'¡': NewData += "¡"; break;
|
||
- case L'¢': NewData += "¢"; break;
|
||
- case L'£': NewData += "£"; break;
|
||
- case L'¤': NewData += "¤"; break;
|
||
- case L'¥': NewData += "¥"; break;
|
||
- case L'¦': NewData += "¦"; break;
|
||
- case L'§': NewData += "§"; break;
|
||
- case L'¨': NewData += "¨"; break;
|
||
- case L'©': NewData += "©"; break;
|
||
- case L'ª': NewData += "ª"; break;
|
||
- case L'¬': NewData += "¬"; break;
|
||
- case L'': NewData += "­"; break;
|
||
- case L'®': NewData += "®"; break;
|
||
- case L'¯': NewData += "¯"; break;
|
||
- case L'°': NewData += "°"; break;
|
||
- case L'±': NewData += "±"; break;
|
||
- case L'²': NewData += "²"; break;
|
||
- case L'³': NewData += "³"; break;
|
||
- case L'´': NewData += "´"; break;
|
||
- case L'µ': NewData += "µ"; break;
|
||
- case L'¶': NewData += "¶"; break;
|
||
- case L'·': NewData += "·"; break;
|
||
- case L'¸': NewData += "¸"; break;
|
||
- case L'¹': NewData += "¹"; break;
|
||
- case L'º': NewData += "º"; break;
|
||
- case L'»': NewData += "»"; break;
|
||
- case L'«': NewData += "«"; break;
|
||
- case L'¼': NewData += "¼"; break;
|
||
- case L'½': NewData += "½"; break;
|
||
- case L'¾': NewData += "¾"; break;
|
||
- case L'¿': NewData += "¿"; break;
|
||
- case L'À': NewData += "À"; break;
|
||
- case L'Á': NewData += "Á"; break;
|
||
- case L'Â': NewData += "Â"; break;
|
||
- case L'Ã': NewData += "Ã"; break;
|
||
- case L'Ä': NewData += "Ä"; break;
|
||
- case L'Å': NewData += "Å"; break;
|
||
- case L'Æ': NewData += "Æ"; break;
|
||
- case L'Ç': NewData += "Ç"; break;
|
||
- case L'È': NewData += "È"; break;
|
||
- case L'É': NewData += "É"; break;
|
||
- case L'Ê': NewData += "Ê"; break;
|
||
- case L'Ë': NewData += "Ë"; break;
|
||
- case L'Ì': NewData += "Ì"; break;
|
||
- case L'Í': NewData += "Í"; break;
|
||
- case L'Î': NewData += "Î"; break;
|
||
- case L'Ï': NewData += "Ï"; break;
|
||
- case L'Ð': NewData += "Ð"; break;
|
||
- case L'Ñ': NewData += "Ñ"; break;
|
||
- case L'Ò': NewData += "Ò"; break;
|
||
- case L'Ó': NewData += "Ó"; break;
|
||
- case L'Ô': NewData += "Ô"; break;
|
||
- case L'Õ': NewData += "Õ"; break;
|
||
- case L'Ö': NewData += "Ö"; break;
|
||
- case L'×': NewData += "×"; break;
|
||
- case L'Ø': NewData += "Ø"; break;
|
||
- case L'Ù': NewData += "Ù"; break;
|
||
- case L'Ú': NewData += "Ú"; break;
|
||
- case L'Û': NewData += "Û"; break;
|
||
- case L'Ü': NewData += "Ü"; break;
|
||
- case L'Ý': NewData += "Ý"; break;
|
||
- case L'Þ': NewData += "Þ"; break;
|
||
- case L'ß': NewData += "ß"; break;
|
||
- case L'à': NewData += "à"; break;
|
||
- case L'á': NewData += "á"; break;
|
||
- case L'â': NewData += "â"; break;
|
||
- case L'ã': NewData += "ã"; break;
|
||
- case L'ä': NewData += "ä"; break;
|
||
- case L'å': NewData += "å"; break;
|
||
- case L'æ': NewData += "æ"; break;
|
||
- case L'ç': NewData += "ç"; break;
|
||
- case L'è': NewData += "è"; break;
|
||
- case L'é': NewData += "é"; break;
|
||
- case L'ê': NewData += "ê"; break;
|
||
- case L'ë': NewData += "ë"; break;
|
||
- case L'ì': NewData += "ì"; break;
|
||
- case L'í': NewData += "í"; break;
|
||
- case L'î': NewData += "î"; break;
|
||
- case L'ï': NewData += "ï"; break;
|
||
- case L'ð': NewData += "ð"; break;
|
||
- case L'ñ': NewData += "ñ"; break;
|
||
- case L'ò': NewData += "ò"; break;
|
||
- case L'ó': NewData += "ó"; break;
|
||
- case L'ô': NewData += "ô"; break;
|
||
- case L'õ': NewData += "õ"; break;
|
||
- case L'ö': NewData += "ö"; break;
|
||
- case L'÷': NewData += "÷"; break;
|
||
- case L'ø': NewData += "ø"; break;
|
||
- case L'ù': NewData += "ù"; break;
|
||
- case L'ú': NewData += "ú"; break;
|
||
- case L'û': NewData += "û"; break;
|
||
- case L'ü': NewData += "ü"; break;
|
||
- case L'ý': NewData += "ý"; break;
|
||
- case L'þ': NewData += "þ"; break;
|
||
+ case /* L'€' */ 0x20ac: NewData += "€"; break;
|
||
+ case /* L'"' */ 0x22: NewData += """; break;
|
||
+ case /* L'&' */ 0x26: NewData += "&"; break;
|
||
+ case /* L'<' */ 0x3c: NewData += "<"; break;
|
||
+ case /* L'>' */ 0x3e: NewData += ">"; break;
|
||
+ case /* L'¡' */ 0xa1: NewData += "¡"; break;
|
||
+ case /* L'¢' */ 0xa2: NewData += "¢"; break;
|
||
+ case /* L'£' */ 0xa3: NewData += "£"; break;
|
||
+ case /* L'¤' */ 0xa4: NewData += "¤"; break;
|
||
+ case /* L'¥' */ 0xa5: NewData += "¥"; break;
|
||
+ case /* L'¦' */ 0xa6: NewData += "¦"; break;
|
||
+ case /* L'§' */ 0xa7: NewData += "§"; break;
|
||
+ case /* L'¨' */ 0xa8: NewData += "¨"; break;
|
||
+ case /* L'©' */ 0xa9: NewData += "©"; break;
|
||
+ case /* L'ª' */ 0xaa: NewData += "ª"; break;
|
||
+ case /* L'¬' */ 0xac: NewData += "¬"; break;
|
||
+ case /* L'' */ 0xad: NewData += "­"; break;
|
||
+ case /* L'®' */ 0xae: NewData += "®"; break;
|
||
+ case /* L'¯' */ 0xaf: NewData += "¯"; break;
|
||
+ case /* L'°' */ 0xb0: NewData += "°"; break;
|
||
+ case /* L'±' */ 0xb1: NewData += "±"; break;
|
||
+ case /* L'²' */ 0xb2: NewData += "²"; break;
|
||
+ case /* L'³' */ 0xb3: NewData += "³"; break;
|
||
+ case /* L'´' */ 0xb4: NewData += "´"; break;
|
||
+ case /* L'µ' */ 0xb5: NewData += "µ"; break;
|
||
+ case /* L'¶' */ 0xb6: NewData += "¶"; break;
|
||
+ case /* L'·' */ 0xb7: NewData += "·"; break;
|
||
+ case /* L'¸' */ 0xb8: NewData += "¸"; break;
|
||
+ case /* L'¹' */ 0xb9: NewData += "¹"; break;
|
||
+ case /* L'º' */ 0xba: NewData += "º"; break;
|
||
+ case /* L'»' */ 0xbb: NewData += "»"; break;
|
||
+ case /* L'«' */ 0xab: NewData += "«"; break;
|
||
+ case /* L'¼' */ 0xbc: NewData += "¼"; break;
|
||
+ case /* L'½' */ 0xbd: NewData += "½"; break;
|
||
+ case /* L'¾' */ 0xbe: NewData += "¾"; break;
|
||
+ case /* L'¿' */ 0xbf: NewData += "¿"; break;
|
||
+ case /* L'À' */ 0xc0: NewData += "À"; break;
|
||
+ case /* L'Á' */ 0xc1: NewData += "Á"; break;
|
||
+ case /* L'Â' */ 0xc2: NewData += "Â"; break;
|
||
+ case /* L'Ã' */ 0xc3: NewData += "Ã"; break;
|
||
+ case /* L'Ä' */ 0xc4: NewData += "Ä"; break;
|
||
+ case /* L'Å' */ 0xc5: NewData += "Å"; break;
|
||
+ case /* L'Æ' */ 0xc6: NewData += "Æ"; break;
|
||
+ case /* L'Ç' */ 0xc7: NewData += "Ç"; break;
|
||
+ case /* L'È' */ 0xc8: NewData += "È"; break;
|
||
+ case /* L'É' */ 0xc9: NewData += "É"; break;
|
||
+ case /* L'Ê' */ 0xca: NewData += "Ê"; break;
|
||
+ case /* L'Ë' */ 0xcb: NewData += "Ë"; break;
|
||
+ case /* L'Ì' */ 0xcc: NewData += "Ì"; break;
|
||
+ case /* L'Í' */ 0xcd: NewData += "Í"; break;
|
||
+ case /* L'Î' */ 0xce: NewData += "Î"; break;
|
||
+ case /* L'Ï' */ 0xcf: NewData += "Ï"; break;
|
||
+ case /* L'Ð' */ 0xd0: NewData += "Ð"; break;
|
||
+ case /* L'Ñ' */ 0xd1: NewData += "Ñ"; break;
|
||
+ case /* L'Ò' */ 0xd2: NewData += "Ò"; break;
|
||
+ case /* L'Ó' */ 0xd3: NewData += "Ó"; break;
|
||
+ case /* L'Ô' */ 0xd4: NewData += "Ô"; break;
|
||
+ case /* L'Õ' */ 0xd5: NewData += "Õ"; break;
|
||
+ case /* L'Ö' */ 0xd6: NewData += "Ö"; break;
|
||
+ case /* L'×' */ 0xd7: NewData += "×"; break;
|
||
+ case /* L'Ø' */ 0xd8: NewData += "Ø"; break;
|
||
+ case /* L'Ù' */ 0xd9: NewData += "Ù"; break;
|
||
+ case /* L'Ú' */ 0xda: NewData += "Ú"; break;
|
||
+ case /* L'Û' */ 0xdb: NewData += "Û"; break;
|
||
+ case /* L'Ü' */ 0xdc: NewData += "Ü"; break;
|
||
+ case /* L'Ý' */ 0xdd: NewData += "Ý"; break;
|
||
+ case /* L'Þ' */ 0xde: NewData += "Þ"; break;
|
||
+ case /* L'ß' */ 0xdf: NewData += "ß"; break;
|
||
+ case /* L'à' */ 0xe0: NewData += "à"; break;
|
||
+ case /* L'á' */ 0xe1: NewData += "á"; break;
|
||
+ case /* L'â' */ 0xe2: NewData += "â"; break;
|
||
+ case /* L'ã' */ 0xe3: NewData += "ã"; break;
|
||
+ case /* L'ä' */ 0xe4: NewData += "ä"; break;
|
||
+ case /* L'å' */ 0xe5: NewData += "å"; break;
|
||
+ case /* L'æ' */ 0xe6: NewData += "æ"; break;
|
||
+ case /* L'ç' */ 0xe7: NewData += "ç"; break;
|
||
+ case /* L'è' */ 0xe8: NewData += "è"; break;
|
||
+ case /* L'é' */ 0xe9: NewData += "é"; break;
|
||
+ case /* L'ê' */ 0xea: NewData += "ê"; break;
|
||
+ case /* L'ë' */ 0xeb: NewData += "ë"; break;
|
||
+ case /* L'ì' */ 0xec: NewData += "ì"; break;
|
||
+ case /* L'í' */ 0xed: NewData += "í"; break;
|
||
+ case /* L'î' */ 0xee: NewData += "î"; break;
|
||
+ case /* L'ï' */ 0xef: NewData += "ï"; break;
|
||
+ case /* L'ð' */ 0xf0: NewData += "ð"; break;
|
||
+ case /* L'ñ' */ 0xf1: NewData += "ñ"; break;
|
||
+ case /* L'ò' */ 0xf2: NewData += "ò"; break;
|
||
+ case /* L'ó' */ 0xf3: NewData += "ó"; break;
|
||
+ case /* L'ô' */ 0xf4: NewData += "ô"; break;
|
||
+ case /* L'õ' */ 0xf5: NewData += "õ"; break;
|
||
+ case /* L'ö' */ 0xf6: NewData += "ö"; break;
|
||
+ case /* L'÷' */ 0xf7: NewData += "÷"; break;
|
||
+ case /* L'ø' */ 0xf8: NewData += "ø"; break;
|
||
+ case /* L'ù' */ 0xf9: NewData += "ù"; break;
|
||
+ case /* L'ú' */ 0xfa: NewData += "ú"; break;
|
||
+ case /* L'û' */ 0xfb: NewData += "û"; break;
|
||
+ case /* L'ü' */ 0xfc: NewData += "ü"; break;
|
||
+ case /* L'ý' */ 0xfd: NewData += "ý"; break;
|
||
+ case /* L'þ' */ 0xfe: NewData += "þ"; break;
|
||
default: NewData += Data[i]; break;
|
||
}
|
||
}
|