From owner-freebsd-bugs@FreeBSD.ORG Tue Nov 12 01:20:04 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D89FFAC0 for ; Tue, 12 Nov 2013 01:20:04 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B52663076 for ; Tue, 12 Nov 2013 01:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rAC1K4ii055114 for ; Tue, 12 Nov 2013 01:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rAC1K4nq055113; Tue, 12 Nov 2013 01:20:04 GMT (envelope-from gnats) Resent-Date: Tue, 12 Nov 2013 01:20:04 GMT Resent-Message-Id: <201311120120.rAC1K4nq055113@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Julian H. Stacey" Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF4551FE; Tue, 12 Nov 2013 01:11:02 +0000 (UTC) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 561E82FDF; Tue, 12 Nov 2013 01:11:01 +0000 (UTC) Received: from mart.js.berklix.net (p5DCBCA5C.dip0.t-ipconnect.de [93.203.202.92]) (authenticated bits=128) by land.berklix.org (8.14.5/8.14.5) with ESMTP id rAC1B0ew040207; Tue, 12 Nov 2013 01:11:00 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id rAC1AjIw035268; Tue, 12 Nov 2013 02:10:46 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost.js.berklix.net [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id rAC1A1jc066753; Tue, 12 Nov 2013 02:10:07 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201311120110.rAC1A1jc066753@fire.js.berklix.net> Date: Tue, 12 Nov 2013 02:10:01 +0100 From: "Julian H. Stacey" Sender: jhs@berklix.com To: FreeBSD-gnats-submit@freebsd.org, hackers@freebsd.org In-Reply-To: Your message "patch for /usr/src/usr.bin/fmt/ (not 8 bit clean) for German & French" Subject: bin/183877: patch for /usr/src/usr.bin/fmt/ (not 8 bit clean) for German & French Cc: "Bernhard Riedel \(Work\)" , Astrid Jekat X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: "Julian H. Stacey" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2013 01:20:04 -0000 >Number: 183877 >Category: bin >Synopsis: patch for /usr/src/usr.bin/fmt/ (not 8 bit clean) for German & French >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Nov 12 01:20:04 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Julian H. Stacey >Release: FreeBSD 10.0-BETA3 amd64 >Organization: http://berklix.com BSD Linux Unix Consultancy, Munich/Muenchen. >Environment: System: FreeBSD fire.js.berklix.net 10.0-BETA3 FreeBSD 10.0-BETA3 #0: Mon Aug 20 18:20:09 CEST 2012 jhs@fire.js.berklix.net:/usr/src/sys/amd64/compile/FIRE64.small amd64 >Description: 2003 I looked at fmt.c to make it 8 bit clean for 4.8-RELEASE, I was conservative & my patches did just a subset, I recall. http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/usr.bin/fmt/ I maintained patches since. 2010 I posted to hackers@ Tue May 25 11:29:20 UTC 2010 http://lists.freebsd.org/pipermail/freebsd-hackers/2010-May/031901.html & got 1 comment: Christian's from Wed May 26 18:05:53 UTC 2010, http://lists.freebsd.org/pipermail/freebsd-hackers/2010-May/031927.html I'm still using & maintaining patches through to current & 10.0-BETA3, Tonight 2 BSD people (cc'd) asked I'd sent patches, so this also a send-pr. WRT Christian's comment from Wed May 26 18:05:53 UTC 2010, I don't know about ISO 8859-1 and UTF-8, (I dislike & avoid national char set stuff as much as possible), but I want to be able to edit files that simultaneously contain eg all of English German & French etc, so setting some var to eg just German would be inappropriate. 8 bit clean would be ideal, next best would be my patches I suppose. We no longer use 7 bit teletypes, & no longer need parity, so fmt.c could be made pretty much 8 bit clean, (apart from eg Null etc which'd doubtless be too much hastle). - Or it can be tweaked to allow some chars as I recall I did, Options presumably are still the 4 from Tue May 25 11:29:20 UTC 2010 http://lists.freebsd.org/pipermail/freebsd-hackers/2010-May/031901.html I assume either adopting Solution 1 (Discard "& 0x7f" ) or Solution 2 (my patches) would not disrupt locale users, but would stop fmt failing on some 8 bit text. >How-To-Repeat: Read the code >Fix: Look at my posting http://lists.freebsd.org/pipermail/freebsd-hackers/2010-May/031901.html & my patches http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/usr.bin/fmt/ >Release-Note: >Audit-Trail: >Unformatted: X-send-pr-version: 3.113 X-GNATS-Notify: