rpms/paps/FC-6 paps-0.6.6-lcnumeric.patch, NONE, 1.1 paps.spec, 1.20, 1.21
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Mar 27 11:56:29 UTC 2007
- Previous message (by thread): rpms/paps/devel paps-0.6.6-lcnumeric.patch, NONE, 1.1 paps.spec, 1.21, 1.22
- Next message (by thread): rpms/procmail/devel procmail-3.22-truncate.patch, 1.1, 1.2 procmail.spec, 1.21, 1.22 procmail-3.22-large_files.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: tagoh
Update of /cvs/dist/rpms/paps/FC-6
In directory cvs.devel.redhat.com:/tmp/cvs-serv17893
Modified Files:
paps.spec
Added Files:
paps-0.6.6-lcnumeric.patch
Log Message:
* Tue Mar 27 2007 Akira TAGOH <tagoh at redhat.com> - 0.6.6-19
- Fix PostScript breakage following the non-monetary numeric format from
current locale. (#231916)
paps-0.6.6-lcnumeric.patch:
libpaps.c | 28 +++++++++++++++++++++++++++-
libpaps.h | 4 ++++
paps.c | 4 ++--
3 files changed, 33 insertions(+), 3 deletions(-)
--- NEW FILE paps-0.6.6-lcnumeric.patch ---
diff -ruN paps-0.6.6.orig/src/libpaps.c paps-0.6.6/src/libpaps.c
--- paps-0.6.6.orig/src/libpaps.c 2007-03-27 20:25:00.000000000 +0900
+++ paps-0.6.6/src/libpaps.c 2007-03-27 20:31:15.000000000 +0900
@@ -28,6 +28,7 @@
#include <freetype/ftglyph.h>
#include <freetype/ftoutln.h>
#include <errno.h>
+#include <locale.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -263,7 +264,7 @@
);
/* Outline support */
- g_string_append_printf(paps->header,
+ paps_string_append_printf(paps->header,
"/conicto {\n"
" /to_y exch def\n"
" /to_x exch def\n"
@@ -691,3 +692,28 @@
return points * 1.0 / 72 * PAPS_DPI * PANGO_SCALE;
}
+void
+paps_string_append_printf(GString *string,
+ const gchar *fmt,
+ ...)
+{
+ gchar *buffer, *lc_numeric;
+ gint length;
+ va_list args;
+
+ va_start(args, fmt);
+
+ lc_numeric = g_strdup(setlocale(LC_NUMERIC, NULL));
+ setlocale(LC_NUMERIC, "C");
+
+ length = g_vasprintf(&buffer, fmt, args);
+ g_string_append_len(string, buffer, length);
+
+ setlocale(LC_NUMERIC, lc_numeric);
+
+ g_free(buffer);
+ g_free(lc_numeric);
+
+ va_end(args);
+}
+
diff -ruN paps-0.6.6.orig/src/libpaps.h paps-0.6.6/src/libpaps.h
--- paps-0.6.6.orig/src/libpaps.h 2007-03-27 20:25:00.000000000 +0900
+++ paps-0.6.6/src/libpaps.h 2007-03-27 20:31:02.000000000 +0900
@@ -124,4 +124,8 @@
*/
double paps_postscript_points_to_pango(double points);
+void paps_string_append_printf(GString *string,
+ const gchar *fmt,
+ ...) G_GNUC_PRINTF (2, 3);
+
#endif /* LIBPAPS */
diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c
--- paps-0.6.6.orig/src/paps.c 2007-03-27 20:25:00.000000000 +0900
+++ paps-0.6.6/src/paps.c 2007-03-27 20:31:33.000000000 +0900
@@ -992,7 +992,7 @@
y_top = page_layout->page_height - page_layout->top_margin - page_layout->header_height - page_layout->header_sep / 2;
y_bot = page_layout->bottom_margin - page_layout->footer_height;
- g_string_append_printf(ps_pages_string,
+ paps_string_append_printf(ps_pages_string,
"%f %f moveto %f %f lineto 0 setlinewidth stroke\n",
x_pos, y_top,
x_pos, y_bot);
@@ -1154,7 +1154,7 @@
/* header separator */
line_pos = page_layout->page_height - page_layout->top_margin - page_layout->header_height - page_layout->header_sep / 2;
- g_string_append_printf(ps_pages_string,
+ paps_string_append_printf(ps_pages_string,
"%d %f moveto %d %f lineto 0 setlinewidth stroke\n",
page_layout->left_margin, line_pos,
page_layout->page_width - page_layout->right_margin, line_pos);
Index: paps.spec
===================================================================
RCS file: /cvs/dist/rpms/paps/FC-6/paps.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- paps.spec 7 Mar 2007 12:10:32 -0000 1.20
+++ paps.spec 27 Mar 2007 11:56:27 -0000 1.21
@@ -1,6 +1,6 @@
Name: paps
Version: 0.6.6
-Release: 18%{?dist}
+Release: 19%{?dist}
License: LGPL
URL: http://paps.sourceforge.net/
@@ -27,6 +27,7 @@
Patch10: paps-0.6.6-exitcode.patch
Patch11: paps-0.6.6-fix-wcswidth.patch
Patch12: paps-0.6.6-langinfo.patch
+Patch13: paps-0.6.6-lcnumeric.patch
Patch50: paps-cups.patch
Summary: Plain Text to PostScript converter
@@ -49,6 +50,7 @@
%patch10 -p1 -b .exitcode
%patch11 -p1 -b .wcswidth
%patch12 -p1 -b .langinfo
+%patch13 -p1 -b .lcnumeric
%patch50 -p1 -b .cups
aclocal
automake
@@ -82,6 +84,10 @@
%changelog
+* Tue Mar 27 2007 Akira TAGOH <tagoh at redhat.com> - 0.6.6-19
+- Fix PostScript breakage following the non-monetary numeric format from
+ current locale. (#231916)
+
* Thu Mar 7 2007 Akira TAGOH <tagoh at redhat.com> - 0.6.6-18
- default to lpi=6 and cpi=10 if paps is bringing up as cups filter. (#223862)
- Previous message (by thread): rpms/paps/devel paps-0.6.6-lcnumeric.patch, NONE, 1.1 paps.spec, 1.21, 1.22
- Next message (by thread): rpms/procmail/devel procmail-3.22-truncate.patch, 1.1, 1.2 procmail.spec, 1.21, 1.22 procmail-3.22-large_files.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list