[PATCH] Fix LC_PAPER

Jakub Jelinek jakub@redhat.com
Thu Nov 9 04:07:00 GMT 2000


Hi!

Most of the common paper sizes are not squares...

2000-11-09  Jakub Jelinek  <jakub@redhat.com>

	* locale/programs/ld-paper.c (paper_output): Fix offset into width
	field.

--- libc/locale/programs/ld-paper.c.jj	Mon Jan 17 07:58:52 2000
+++ libc/locale/programs/ld-paper.c	Thu Nov  9 13:05:21 2000
@@ -138,7 +138,7 @@ paper_output (struct localedef_t *locale
   iov[cnt].iov_len = 4;
   ++cnt;
 
-  idx[cnt - 2] = iov[0].iov_len + iov[1].iov_len;
+  idx[cnt - 2] = idx[cnt - 3] + iov[cnt - 1].iov_len;
   iov[cnt].iov_base = &paper->width;
   iov[cnt].iov_len = 4;
   ++cnt;

	Jakub


More information about the Libc-hacker mailing list