Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 1998 00:15:21 +0700 (NSS)
From:      vitaly@tc.nsc.ru
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/6342: Problems with russian language in pgp50i
Message-ID:  <199804181715.AAA13643@tc.nsc.ru>

next in thread | raw e-mail | index | archive | help

>Number:         6342
>Category:       ports
>Synopsis:       Problems with russian language in pgp50i
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 18 10:20:01 PDT 1998
>Last-Modified:
>Originator:     Vitaly V. Belekhov
>Organization:
TechnoCity company, Novosibirsk, Russia
>Release:        FreeBSD 2.2.6-STABLE i386
>Environment:

	Beginning of Makefile for pgp5 port:

-------------------------------------Cut--------------------------------
# New ports collection makefile for: pgp5
# Version required:     International PGP 5.0
# International PGP homepage is http://www.ifi.uio.no/pgp/
#
# Date created:         10 Feb 1998
# Whom:                 markm
#
# $Id: Makefile,v 1.22 1998/04/15 16:21:59 scrappy Exp $
#

DISTNAME=	pgp50i
PKGNAME=	pgp-5.0i
CATEGORIES=	security
MASTER_SITES=   ftp://ftp.ifi.uio.no/pub/pgp/5.0/unix/ \
		ftp.doc.ic.ac.uk/pub/Mirrors/ftp.ifi.uio.no/pub/pgp/5.0/unix/
EXTRACT_SUFX=   -unix-src.tar.gz

MAINTAINER=	markm@FreeBSD.ORG

-------------------------------------Cut--------------------------------

>Description:

	When signing text file with command "pgps -at file.txt",
	input file with ASCII data resulted normal readable file
	file.txt.asc with text and signature. But if file contain
	any (at least one) character with code >127 (any russian
	text), resulting file not in textmode (i.e. compressed,
	then signed, then radix64).

>How-To-Repeat:

	Use this test (uuencoded):

-----------------Cut------------------
begin 644 repeat.txt
92&5L;&\*X>+W("T@<G5S<VEA;B!T97AT"MV_
`
end
-----------------Cut------------------

	Command "pgps -at repeat.txt" will be sufficient :)
>Fix:
	After digging around the pgp50i code I found bug, this patch
	fixed it completely:

--------------------------------Cut-------------------------------------
*** lib/pgp/utils/pgpFileType.c.bak	Sun Aug 10 04:44:33 1997
--- lib/pgp/utils/pgpFileType.c	Sat Apr 18 22:40:56 1998
***************
*** 185,191 ****
  pgpFileTypeBinary(char const *lang, byte const *buf, unsigned len)
  	{
  			unsigned highlimit;
! 			char c;
  
  			if (!len)
  				 return 1;		/* empty file or error, not a text file */
--- 185,191 ----
  pgpFileTypeBinary(char const *lang, byte const *buf, unsigned len)
  	{
  			unsigned highlimit;
! 			unsigned char c;
  
  			if (!len)
  				 return 1;		/* empty file or error, not a text file */
--------------------------------Cut-------------------------------------
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804181715.AAA13643>