[grisbi-cvs] grisbi/src etats_latex.c,1.53,1.54

Benjamin Drieu benj2 at users.sourceforge.net
Sun Jan 4 19:47:15 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20683

Modified Files:
	etats_latex.c 
Log Message:
Remove compile time warning as well as euro fix as it is not needed anymore, plus ass UCS package, needed to produce lovely LaTeX file

Index: etats_latex.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/etats_latex.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- etats_latex.c	21 Sep 2008 13:05:31 -0000	1.53
+++ etats_latex.c	4 Jan 2009 18:47:13 -0000	1.54
@@ -1,7 +1,7 @@
 /*  Fichier qui s'occupe d'afficher les états via une impression latex */
 /*      etats_latex.c */
 
-/*     Copyright (C)	2004-2008 Benjamin Drieu (bdrieu at april.org) */
+/*     Copyright (C)	2004-2009 Benjamin Drieu (bdrieu at april.org) */
 /* 			http://www.grisbi.org				      */
 
 /*     This program is free software; you can redistribute it and/or modify */
@@ -281,7 +281,9 @@
 	     "\\usepackage{boxedminipage}\n"
 	     "\\usepackage{longtable}\n"
 	     "\\usepackage{vmargin}\n"
-	     "\\usepackage[T1]{fontenc}\n");
+	     "\\usepackage[T1]{fontenc}\n"
+	     "\\usepackage{ucs}\n"
+	     "\\usepackage[utf8x]{inputenc}\n" );
 
     if ( etat.print_config.orientation == LANDSCAPE )
     {
@@ -417,7 +419,8 @@
 
     for ( ; * text; text ++ )
     {
-	switch ( * text )
+	guchar c = * text;
+	switch ( c )
 	{
 
 	    case ' ':
@@ -427,14 +430,6 @@
 		    fprintf ( file_out, "%c", *text );
 		break;
 
-	    case 'â':
-		if ( *(text+1) == '‚' && *(text+2) == '¬' )
-		{
-		    fprintf ( file_out, "\\officialeuro" );
-		    text+=2;
-		}
-		break;
-
 	    case '_':
 	    case '&':
 	    case '%':



More information about the cvs mailing list