mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Patch for portability of latin characters in C files
Coming from LibreOffice repository: http://cgit.freedesktop.org/libreoffice/core/plain/libxml2/libxml2-latin.patch
This commit is contained in:
@@ -287,7 +287,7 @@ static void des_long(int no ATTRIBUTE_UNUSED, long val ATTRIBUTE_UNUSED, int nr
|
||||
static xmlChar gen_xmlChar(int no, int nr ATTRIBUTE_UNUSED) {
|
||||
if (no == 0) return('a');
|
||||
if (no == 1) return(' ');
|
||||
if (no == 2) return((xmlChar) 'ø');
|
||||
if (no == 2) return((xmlChar) '\xf8');
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -395,7 +395,7 @@ static void des_debug_FILE_ptr(int no ATTRIBUTE_UNUSED, FILE *val, int nr ATTRIB
|
||||
static xmlChar *gen_const_xmlChar_ptr(int no, int nr ATTRIBUTE_UNUSED) {
|
||||
if (no == 0) return((xmlChar *) "foo");
|
||||
if (no == 1) return((xmlChar *) "<foo/>");
|
||||
if (no == 2) return((xmlChar *) "nøne");
|
||||
if (no == 2) return((xmlChar *) "n" "\xf8" "ne");
|
||||
if (no == 3) return((xmlChar *) " 2ab ");
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user