[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
man-db docs/ChangeLog src/encodings.c src/encod...
From: |
Colin Watson |
Subject: |
man-db docs/ChangeLog src/encodings.c src/encod... |
Date: |
Wed, 17 Sep 2003 02:17:49 -0400 |
CVSROOT: /cvsroot/man-db
Module name: man-db
Branch:
Changes by: Colin Watson <address@hidden> 03/09/17 02:17:49
Modified files:
docs : ChangeLog
src : encodings.c encodings.h man.c
Log message:
Fix case where a page explicitly encoded in UTF-8 has to be recoded
down to a non-ISO-8859-1 legacy encoding for processing by groff and
then back up to UTF-8 for display.
* src/encodings.c (get_page_encoding): New function, renamed from
get_source_encoding.
(get_source_encoding): Return only the canonical source encoding,
not any explicit encoding in the directory name. This allows us to
take account of differing explicit encoding and canonical encoding
of pages for the purposes of working out which device to use.
(get_roff_encoding): New source_encoding argument, now returned
instead of NULL.
(get_default_device): Pass source_encoding to get_roff_encoding().
(compatible_encodings): The roff encoding can no longer be NULL.
* src/encodings.h (get_page_encoding): Add prototype.
(get_roff_encoding): Update prototype.
* src/man.c (make_roff_command): Call get_page_encoding(), and
recode from that to roff_encoding, not from source_encoding to
roff_encoding. Pass source_encoding to get_roff_encoding().
roff_encoding can no longer be NULL.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/man-db/man-db/docs/ChangeLog.diff?tr1=1.403&tr2=1.404&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/man-db/man-db/src/encodings.c.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/man-db/man-db/src/encodings.h.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/man-db/man-db/src/man.c.diff?tr1=1.104&tr2=1.105&r1=text&r2=text