rpms/groff/FC-4 groff-1.18.1.1-grn.patch, 1.2, 1.3 groff-1.18.1-8bit.patch, 1.2, 1.3 groff-1.18.1-fix15.patch, 1.2, 1.3

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Jan 13 12:27:15 UTC 2006


Author: mlichvar

Update of /cvs/dist/rpms/groff/FC-4
In directory cvs.devel.redhat.com:/tmp/cvs-serv13647

Added Files:
	groff-1.18.1.1-grn.patch groff-1.18.1-8bit.patch 
	groff-1.18.1-fix15.patch 
Log Message:
undelete


groff-1.18.1.1-grn.patch:
 hdb.cc |    1 -
 1 files changed, 1 deletion(-)

Index: groff-1.18.1.1-grn.patch
===================================================================
RCS file: groff-1.18.1.1-grn.patch
diff -N groff-1.18.1.1-grn.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ groff-1.18.1.1-grn.patch	13 Jan 2006 12:27:11 -0000	1.3
@@ -0,0 +1,10 @@
+--- groff-1.18.1.1/src/preproc/grn/hdb.cc.grn	2002-10-07 06:42:55.000000000 +0200
++++ groff-1.18.1.1/src/preproc/grn/hdb.cc	2004-09-16 10:23:42.394486378 +0200
+@@ -115,7 +115,6 @@
+     type = DBGetType(string);	/* interpret element type */
+     if (type < 0) {		/* no more data */
+       done = TRUE;
+-      (void) fclose(file);
+     } else {
+ #ifdef UW_FASTSCAN
+       (void) xscanf(file, &x, &y);		/* always one point */

groff-1.18.1-8bit.patch:
 env.cc |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: groff-1.18.1-8bit.patch
===================================================================
RCS file: groff-1.18.1-8bit.patch
diff -N groff-1.18.1-8bit.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ groff-1.18.1-8bit.patch	13 Jan 2006 12:27:11 -0000	1.3
@@ -0,0 +1,17 @@
+2002-10-11  Ruslan Ermilov  <ru at FreeBSD.org>
+
+       * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
+       cast to `unsigned char' to properly read patterns with 8bit
+       characters.
+
+--- groff-1.18.1/src/roff/troff/env.cc
++++ groff-1.18.1/src/roff/troff/env.cc
+@@ -3924,7 +3924,7 @@
+     if (i > 0) {
+       if (have_patterns || final_pattern || traditional) {
+ 	for (int j = 0; j < i; j++)
+-	  buf[j] = hpf_code_table[buf[j]];
++	  buf[j] = hpf_code_table[(unsigned char)buf[j]];
+ 	insert_pattern(buf, i, num);
+ 	final_pattern = 0;
+       }

groff-1.18.1-fix15.patch:
 encoding.cc |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

Index: groff-1.18.1-fix15.patch
===================================================================
RCS file: groff-1.18.1-fix15.patch
diff -N groff-1.18.1-fix15.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ groff-1.18.1-fix15.patch	13 Jan 2006 12:27:11 -0000	1.3
@@ -0,0 +1,27 @@
+--- groff-1.18.1/src/libs/libgroff/encoding.cc.fix15	2004-03-08 16:13:15.825000416 +0100
++++ groff-1.18.1/src/libs/libgroff/encoding.cc	2004-03-08 16:14:41.451983136 +0100
+@@ -384,21 +384,10 @@
+   }
+   /* otherwise */
+ #if HAVE_LANGINFO_CODESET
+-  charset = nl_langinfo(CODESET);
+-#else
+-  charset = strchr(locale, '.');
+-  if (charset)
+-    ++charset;
+-  else
+-    charset = "";
++  locale = nl_langinfo(CODESET);
+ #endif
+-  if (strncmp(locale, "ja", 2) == 0) {
+-    select_input_encoding_handler(charset);
+-    select_output_encoding_handler(charset);
+-  } else if ((!device || strcmp(device, "ascii8") == 0)) {
+-    select_input_encoding_handler(NULL);
+-    select_output_encoding_handler(NULL);
+-  }
++  select_input_encoding_handler(locale);
++  select_output_encoding_handler(locale);
+ #endif
+   return;
+ }




More information about the fedora-cvs-commits mailing list