aboutsummaryrefslogtreecommitdiff
path: root/fontconfig
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig')
-rw-r--r--fontconfig/fonts.dtd10
-rw-r--r--fontconfig/src/fcstr.c4
2 files changed, 9 insertions, 5 deletions
diff --git a/fontconfig/fonts.dtd b/fontconfig/fonts.dtd
index 782e59244..4a309a9d2 100644
--- a/fontconfig/fonts.dtd
+++ b/fontconfig/fonts.dtd
@@ -13,7 +13,7 @@
-->
<!ELEMENT dir (#PCDATA)>
<!ATTLIST dir
- prefix (#PCDATA) "default"
+ prefix CDATA "default"
xml:space (default|preserve) 'preserve'>
<!--
@@ -36,7 +36,7 @@
-->
<!ELEMENT cachedir (#PCDATA)>
<!ATTLIST cachedir
- prefix (#PCDATA) "default"
+ prefix CDATA "default"
xml:space (default|preserve) 'preserve'>
<!--
@@ -52,8 +52,8 @@
<!ELEMENT include (#PCDATA)>
<!ATTLIST include
ignore_missing (no|yes) "no"
- prefix (#PCDATA) "default"
- deprecated (#PCDATA) "no"
+ prefix CDATA "default"
+ deprecated (yes|no) "no"
xml:space (default|preserve) "preserve">
<!--
@@ -165,7 +165,7 @@
qual (any|all|first|not_first) "any"
name CDATA #REQUIRED
target (pattern|font|default) "default"
- ignore-blanks (#PCDATA) "false"
+ ignore-blanks (true|false) "false"
compare (eq|not_eq|less|less_eq|more|more_eq|contains|not_contains) "eq">
<!--
diff --git a/fontconfig/src/fcstr.c b/fontconfig/src/fcstr.c
index f505ea665..037960d2f 100644
--- a/fontconfig/src/fcstr.c
+++ b/fontconfig/src/fcstr.c
@@ -974,6 +974,10 @@ FcStrCanonAbsoluteFilename (const FcChar8 *s)
FcMemAlloc (FC_MEM_STRING, size);
slash = NULL;
f = file;
+#ifdef _WIN32
+ if (*s == '/' && *(s+1) == '/') /* Network path, do not squash // */
+ *f++ = *s++;
+#endif
for (;;) {
if (*s == '/' || *s == '\0')
{