  
  	/*
  	 * Edit pattern with user-defined rules
-@@ -190,7 +183,7 @@ FcDirScanConfig (FcFontSet	*set,
+@@ -196,8 +189,8 @@ FcDirScanConfig (FcFontSet	*set,
      base = file + strlen ((char *) file);
  
      if (FcDebug () & FC_DBG_SCAN)
 -	printf ("\tScanning dir %s\n", dir);
+-	
 +	fprintf (stderr, "[fontconfig] Scanning dir %s\n", dir);
- 	
++
      d = opendir ((char *) dir);
      if (!d)
-@@ -227,8 +220,23 @@ FcDirScanConfig (FcFontSet	*set,
+     {
+@@ -233,8 +226,24 @@ FcDirScanConfig (FcFontSet	*set,
      /*
       * Scan file files to build font patterns
       */
--    for (i = 0; i < files->num; i++)
 +    char buf1[512], buf2[512], pad[512], *str = &buf1[0], *prev = &buf2[0], *tmp;
 +    int j, diff;
 +    prev[0] = pad[0] = 0;
-+    for (i = 0; i < files->num; i++) {
-+	// damn your indentation fontconfig
++
+     for (i = 0; i < files->num; i++)
+     {
 +	snprintf (str, 512, "\r[%d/%d] %s", i+1, files->num, files->strs[i]);
-+	for (diff = strlen (prev) - strlen (str), j = 0; diff > 0; diff--, j++) {
++
++	for (diff = strlen (prev) - strlen (str), j = 0; diff > 0; diff--, j++)
 +	    pad[j] = ' ';
-+	}
++
 +	pad[j] = 0;
++
 +	if (FcDebug () & FC_DBG_SCAN)
 +	    fprintf (stderr, "%s%s", str, pad);
++
 +	tmp = str; str = prev; prev = tmp;
- 	FcFileScanConfig (set, dirs, blanks, files->strs[i], config);
-+    }
++
+ 	if (scanOnly)
+ 	{
+ 	    if (FcFileIsDir (files->strs[i]))
+@@ -246,6 +255,9 @@ FcDirScanConfig (FcFontSet	*set,
+ 	}
+     }
+ 
 +    if (FcDebug () & FC_DBG_SCAN)
 +	fprintf (stderr, "\n[fontconfig] Finished scanning dir %s\n", dir);
- 
++
  bail2:
      FcStrSetDestroy (files);
+ bail1:
 diff --git a/src/fcinit.c b/src/fcinit.c
 index b8d5d06..1a25b97 100644
 --- a/src/fcinit.c

From be8bf4e2f9734d67b24de176b472591c42dadd68 Mon Sep 17 00:00:00 2001
From: Martin Herkt <lachs0r@srsfckn.biz>
Date: Sat, 7 Sep 2013 14:37:48 +0200
Subject: [PATCH 1/2] =?UTF-8?q?Changes=20for=20lachs0r=E2=80=99s=20Windows?=
 =?UTF-8?q?=20builds?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/fcdir.c  | 26 +++++++++++++++++---------
 src/fcinit.c | 35 +++++++++++++++++++++++++++++++++++
 src/fcxml.c  |  2 --
 3 files changed, 52 insertions(+), 11 deletions(-)

diff --git a/src/fcdir.c b/src/fcdir.c
index b040a28..4ef7085 100644
--- a/src/fcdir.c
+++ b/src/fcdir.c
@@ -77,14 +77,7 @@ FcFileScanFontConfig (FcFontSet		*set,

     FcConfigDestroy (config);
 bail0:
diff --git a/src/fcxml.c b/src/fcxml.c
index c68b0cf..c0d978b 100644
--- a/src/fcxml.c
+++ b/src/fcxml.c
@@ -3261,8 +3261,6 @@ bail0:
     {
 	if (name)
 	    FcConfigMessage (0, FcSevereError, "Cannot load config file \"%s\"", name);
