From vitaly@tc.nsc.ru  Sat Apr 18 17:16:08 1998
Received: from tc.nsc.ru (ns.tc.nsc.ru [194.226.168.68])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA21403
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 18 Apr 1998 17:16:00 GMT
          (envelope-from vitaly@tc.nsc.ru)
Received: (from root@localhost)
	by tc.nsc.ru (8.8.8/8.8.8) id AAA13643;
	Sun, 19 Apr 1998 00:15:21 +0700 (NSS)
	(envelope-from vitaly)
Message-Id: <199804181715.AAA13643@tc.nsc.ru>
Date: Sun, 19 Apr 1998 00:15:21 +0700 (NSS)
From: vitaly@tc.nsc.ru
Reply-To: vitaly@tc.nsc.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: Problems with russian language in pgp50i
X-Send-Pr-Version: 3.2

>Number:         6342
>Category:       ports
>Synopsis:       Problems with russian language in pgp50i
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    markm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 18 10:20:01 PDT 1998
>Closed-Date:    Thu Apr 23 15:30:00 PDT 1998
>Last-Modified:  Thu Apr 23 15:30:48 PDT 1998
>Originator:     Vitaly V. Belekhov
>Release:        FreeBSD 2.2.6-STABLE i386
>Organization:
TechnoCity company, Novosibirsk, Russia
>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-------------------------------------
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->markm 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun Apr 19 09:34:08 PDT 1998 
Responsible-Changed-Why:  
Assign to ports maintainer. 
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Thu Apr 23 15:30:00 PDT 1998 
State-Changed-Why:  
Patch added 
>Unformatted:
