rpms/texinfo/devel texinfo-4.8-0xA0.patch, NONE, 1.1 texinfo.spec, 1.40, 1.41
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Mon Dec 4 21:42:30 UTC 2006
- Previous message (by thread): rpms/xorg-x11-drv-mga/devel mga-1.4.5-no-hal-advertising.patch, NONE, 1.1 xorg-x11-drv-mga.spec, 1.16, 1.17
- Next message (by thread): rpms/evolution-connector/devel .cvsignore, 1.40, 1.41 evolution-connector.spec, 1.82, 1.83 evolution-exchange-2.8.1-warn-unused-variable.patch, 1.1, 1.2 sources, 1.40, 1.41 evolution-exchange-2.8.1-bump-requirements.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mitr
Update of /cvs/dist/rpms/texinfo/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv16861
Modified Files:
texinfo.spec
Added Files:
texinfo-4.8-0xA0.patch
Log Message:
* Mon Dec 4 2006 Miloslav Trmac <mitr at redhat.com> - 4.8-15
- Don't replace 0xA0 by a space in makeinfo
Related: #208511
- Fix some rpmlint warnings
texinfo-4.8-0xA0.patch:
makeinfo.c | 22 ++++++++++------------
makeinfo.h | 10 +++-------
2 files changed, 13 insertions(+), 19 deletions(-)
--- NEW FILE texinfo-4.8-0xA0.patch ---
--- texinfo-4.8/makeinfo/makeinfo.c.0xA0 2004-12-19 18:15:42.000000000 +0100
+++ texinfo-4.8/makeinfo/makeinfo.c 2006-12-04 22:37:54.000000000 +0100
@@ -2427,6 +2427,10 @@
len = fill_column - output_column;
break;
+ case NON_BREAKING_SPACE:
+ len = 1;
+ break;
+
default:
/* ASCII control characters appear as two characters in the output
(e.g., ^A). But characters with the high bit set are just one
@@ -2584,7 +2588,7 @@
character = ';';
}
else
- character = META (' '); /* unmeta-d in flush_output */
+ character = NON_BREAKING_SPACE; /* restored in flush_output */
}
insertion_paragraph_closed = 0;
@@ -2922,17 +2926,11 @@
node_line_number++;
}
- /* If we turned on the 8th bit for a space inside @w, turn it
- back off for output. This might be problematic, since the
- 0x80 character may be used in 8-bit character sets. Sigh.
- In any case, don't do this for HTML, since the nbsp character
- is valid input and must be passed along to the browser. */
- if (!html && (output_paragraph[i] & meta_character_bit))
- {
- int temp = UNMETA (output_paragraph[i]);
- if (temp == ' ')
- output_paragraph[i] &= 0x7f;
- }
+ /* If we turned on the 8th bit for a space inside @w, turn it back off
+ for output. Don't do this for HTML, since the nbsp character is valid
+ input and must be passed along to the browser. */
+ if (!html && output_paragraph[i] == NON_BREAKING_SPACE)
+ output_paragraph[i] = ' ';
}
fwrite (output_paragraph, 1, output_paragraph_offset, output_stream);
--- texinfo-4.8/makeinfo/makeinfo.h.0xA0 2004-11-30 03:03:23.000000000 +0100
+++ texinfo-4.8/makeinfo/makeinfo.h 2006-12-04 22:35:06.000000000 +0100
@@ -242,13 +242,6 @@
#define coerce_to_upper(c) ((islower(c) ? toupper(c) : (c)))
#define coerce_to_lower(c) ((isupper(c) ? tolower(c) : (c)))
-#define control_character_bit 0x40 /* %01000000, must be off. */
-#define meta_character_bit 0x080/* %10000000, must be on. */
-#define CTL(c) ((c) & (~control_character_bit))
-#define UNCTL(c) coerce_to_upper(((c)|control_character_bit))
-#define META(c) ((c) | (meta_character_bit))
-#define UNMETA(c) ((c) & (~meta_character_bit))
-
#define whitespace(c) ((c) == '\t' || (c) == ' ')
#define sentence_ender(c) ((c) == '.' || (c) == '?' || (c) == '!')
#define cr_or_whitespace(c) (whitespace(c) || (c) == '\r' || (c) == '\n')
@@ -282,6 +275,9 @@
#define COMMAND_PREFIX '@'
+/* A byte value to represent a non-breaking space until flush_output (). */
+#define NON_BREAKING_SPACE 036
+
#define END_VERBATIM "end verbatim"
/* Stuff for splitting large files. The numbers for Emacs
Index: texinfo.spec
===================================================================
RCS file: /cvs/dist/rpms/texinfo/devel/texinfo.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- texinfo.spec 8 Nov 2006 23:23:24 -0000 1.40
+++ texinfo.spec 4 Dec 2006 21:42:24 -0000 1.41
@@ -1,7 +1,7 @@
-Summary: Tools needed to create Texinfo format documentation files.
+Summary: Tools needed to create Texinfo format documentation files
Name: texinfo
Version: 4.8
-Release: 14%{?dist}
+Release: 15
License: GPL
Group: Applications/Publishing
Url: http://www.gnu.org/software/texinfo/
@@ -10,7 +10,9 @@
Source2: texi2pdf.man
Patch0: texinfo-4.8-zlib.patch
Patch1: texinfo-4.8-texindex.patch
-Prereq: /sbin/install-info
+Patch2: texinfo-4.8-0xA0.patch
+Requires(post): /sbin/install-info
+Requires(preun): /sbin/install-info
Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: zlib-devel, ncurses-devel
@@ -28,7 +30,7 @@
are going to write documentation for the GNU Project.
%package -n info
-Summary: A stand-alone TTY-based reader for GNU texinfo documentation.
+Summary: A stand-alone TTY-based reader for GNU texinfo documentation
Group: System Environment/Base
# By making info prereq bash, other packages which have triggers based on
# info don't run those triggers until bash is in place as well. This is an
@@ -60,6 +62,7 @@
%setup -q
%patch0 -p1 -b .zlib
%patch1 -p1 -b .texindex
+%patch2 -p1 -b .0xA0
%build
@@ -137,6 +140,11 @@
%{_mandir}/man1/texi2pdf.1*
%changelog
+* Mon Dec 4 2006 Miloslav Trmac <mitr at redhat.com> - 4.8-15
+- Don't replace 0xA0 by a space in makeinfo
+ Related: #208511
+- Fix some rpmlint warnings
+
* Sun Nov 5 2006 Miloslav Trmac <mitr at redhat.com> - 4.8-14
- Remove off-line sorting from texindex (fixes CVE 2006-4810)
@@ -356,7 +364,7 @@
* Wed Jan 26 2000 Bernhard Rosenkraenzer <bero at redhat.com>
- move info-stnd.info* to the info package, /sbin/install-info it
- in %post (Bug #6632)
+ in %%post (Bug #6632)
* Thu Jan 13 2000 Jeff Johnson <jbj at redhat.com>
- recompile to eliminate ncurses foul-up.
@@ -379,7 +387,7 @@
* Thu Mar 11 1999 Cristian Gafton <gafton at redhat.com>
- version 3.12f
-- make /usr/info/dir to be a %config(noreplace)
+- make /usr/info/dir to be a %%config(noreplace)
* Wed Nov 25 1998 Jeff Johnson <jbj at redhat.com>
- rebuild to fix docdir perms.
@@ -398,13 +406,13 @@
- translations modified for de
* Tue Jun 9 1998 Jeff Johnson <jbj at redhat.com>
-- add %attr to permit non-root build.
+- add %%attr to permit non-root build.
* Thu May 07 1998 Prospector System <bugs at redhat.com>
- translations modified for de, fr, tr
* Sun Apr 12 1998 Cristian Gafton <gafton at redhat.com>
-- added %clean
+- added %%clean
- manhattan build
* Wed Mar 04 1998 Cristian Gafton <gafton at redhat.com>
- Previous message (by thread): rpms/xorg-x11-drv-mga/devel mga-1.4.5-no-hal-advertising.patch, NONE, 1.1 xorg-x11-drv-mga.spec, 1.16, 1.17
- Next message (by thread): rpms/evolution-connector/devel .cvsignore, 1.40, 1.41 evolution-connector.spec, 1.82, 1.83 evolution-exchange-2.8.1-warn-unused-variable.patch, 1.1, 1.2 sources, 1.40, 1.41 evolution-exchange-2.8.1-bump-requirements.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list