From owner-freebsd-ports Sat Apr 18 10:20:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA22202 for freebsd-ports-outgoing; Sat, 18 Apr 1998 10:20:05 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA22193; Sat, 18 Apr 1998 10:20:03 -0700 (PDT) (envelope-from gnats) 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 ; 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 X-Send-Pr-Version: 3.2 Subject: ports/6342: Problems with russian language in pgp50i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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@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