CVSROOT:        /cvsroot/lilypond
Module name:    lilypond
Branch:         
Changes by:     Han-Wen Nienhuys <[EMAIL PROTECTED]>    05/06/08 11:26:12

Modified files:
        .              : ChangeLog 
        ttftool        : parse.c util.c 

Log message:
        (readNamingTable): verbosity for "bad TTF
        file" massage.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ChangeLog.diff?tr1=1.3737&tr2=1.3738&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ttftool/parse.c.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ttftool/util.c.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: lilypond/ChangeLog
diff -u lilypond/ChangeLog:1.3737 lilypond/ChangeLog:1.3738
--- lilypond/ChangeLog:1.3737   Tue Jun  7 22:50:48 2005
+++ lilypond/ChangeLog  Wed Jun  8 11:26:12 2005
@@ -1,5 +1,8 @@
 2005-06-08  Han-Wen Nienhuys  <[EMAIL PROTECTED]>
 
+       * ttftool/parse.c (readNamingTable): verbosity for "bad TTF
+       file" massage.
+
        * Documentation/user/GNUmakefile (TEXINPUTS): set TEXINPUTS so our
        texinfo.tex is always used.
        
Index: lilypond/ttftool/parse.c
diff -u lilypond/ttftool/parse.c:1.3 lilypond/ttftool/parse.c:1.4
--- lilypond/ttftool/parse.c:1.3        Tue Jun  7 13:34:02 2005
+++ lilypond/ttftool/parse.c    Wed Jun  8 11:26:12 2005
@@ -43,7 +43,7 @@
   surely_read (fd, &format, sizeof (USHORT));
   FIX_UH (format);
   if (format != 0)
-    error ("Bad TTF file\n");
+    error ("Bad TTF file. Format should be 0\n");
   surely_read (fd, &nrecords, sizeof (USHORT));
   FIX_UH (nrecords);
   surely_read (fd, &offset, sizeof (USHORT));
Index: lilypond/ttftool/util.c
diff -u lilypond/ttftool/util.c:1.5 lilypond/ttftool/util.c:1.6
--- lilypond/ttftool/util.c:1.5 Mon Jun  6 14:27:42 2005
+++ lilypond/ttftool/util.c     Wed Jun  8 11:26:12 2005
@@ -44,7 +44,7 @@
 {
   off_t result;
   if ((result = lseek (fildes, offset, whence)) < 0)
-    error ("Bad TTF file");
+    error ("Bad TTF file. Cannot seek");
   return result;
 }
 
@@ -67,7 +67,7 @@
 {
   ssize_t n;
   if ((n = read (fildes, buf, nbyte)) < nbyte)
-    error ("Bad TTF file");
+    error ("Bad TTF file. Read too little bytes in surely_read()");
   return n;
 }
 


_______________________________________________
Lilypond-cvs mailing list
Lilypond-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-cvs

Reply via email to