[Fontconfig] fontconfig cleanup patch

Behdad Esfahbod behdad at cs.toronto.edu
Fri Sep 23 10:22:38 EST 2005


On Thu, 22 Sep 2005, Patrick Lam wrote:

> I committed everything but the code in fclang.c, because I couldn't
> immediately see that the bound there was correct.

Thanks!
Oh Sorry.  The reason for the change in fclang.c was that I ran
it like this:

[behdad at home fc-lang]$ ./fc-lang --help
--help:0: No such file or directory

so I thought it's supposed to use *argv to print out the program
name, but apparently it really means to write "--help".

Just adjust this which was wrong in my patch:

diff -u -p -r1.11.4.5 fc-lang.c
--- fc-lang/fc-lang.c   22 Sep 2005 23:45:53 -0000      1.11.4.5
+++ fc-lang/fc-lang.c   23 Sep 2005 00:21:58 -0000
@@ -65,7 +65,7 @@ fatal (const char *file, int lineno, con
     if (lineno)
        fprintf (stderr, "%s:%d: %s\n", file, lineno, msg);
     else
-       fprintf (stderr, "%s:%d: %s\n", file, lineno, msg);
+       fprintf (stderr, "%s: %s\n", file, msg);
     exit (1);
 }


> pat

Thanks
--behdad



More information about the Fontconfig mailing list