From owner-freebsd-stable@FreeBSD.ORG Fri Jan 17 06:21:42 2014 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 171F319A for ; Fri, 17 Jan 2014 06:21:42 +0000 (UTC) Received: from mail-s68.mailgun.info (mail-s68.mailgun.info [184.173.153.196]) by mx1.freebsd.org (Postfix) with ESMTP id BD991128A for ; Fri, 17 Jan 2014 06:21:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=miator.net; q=dns/txt; s=krs; t=1389939699; h=Mime-Version: In-Reply-To: References: Date: Message-Id: Subject: From: To: Cc: Content-Type: Sender; bh=fSzcxz6oFhzGRk66hR8tUr1VzY3lIUTm4cPe+chAy+g=; b=UPThWj3kGSMw8D8Ks19b97YfNaMCIjHXlzc6RSp9J9YVOFqPMHjXUK14+6U++kH9kojn5QRs izPGctury1PnKQKsnG3yDdWiagEcjfH+8z+rxck35TVAQ/f3yPlZcdk9xFafwwpCyzM2cY0W didbjykeUc/dTrwks+xkb3jyntI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=miator.net; s=krs; q=dns; h=Mime-Version: In-Reply-To: References: Date: Message-Id: Subject: From: To: Cc: Content-Type: Sender; b=GeIOrmHekz6F4P9NXwK5Zn1YjQidNlSWYY361HYx0WHHoAf25VaynhFGrBl1HcS4QS0GVL EuQfOl7dKUmD0vQJtp1eo8tUeB1I3jMC5XGZX+LgS4MRmicXLdrHRTpYPrDjHjLeNyOUSolf Iq1MIhGilf9O6y6oPr/A+dfoJHa6M= Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mxa.mailgun.org with ESMTP id 52d8c9bf.591c530-in3; Fri, 17 Jan 2014 06:12:15 -0000 (UTC) Received: by mail-vc0-f169.google.com with SMTP id hq11so1386484vcb.14 for ; Thu, 16 Jan 2014 22:12:14 -0800 (PST) X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fSzcxz6oFhzGRk66hR8tUr1VzY3lIUTm4cPe+chAy+g=; b=hiUEQNcWQt2fv5z2W3w7iw1/Gd5Wbd9Nbep4+IBdleHRnrSvdluKk1TBUay0pNyRdN ZKnCGODCm1Rx/X2/trjUtAwlaqu2WwC32f0ARf0gg5jEKESsx57sqH7lB2XkkrJVN6sH Fjcpzy95mMYjz9YZKKUjx2aog5LHTOedhJJZLjyyx2fOCUjnplGo9NVd5DeC4c7KLbRK 64wIYnCothPNcRGB+q6lUK2j5uwzHwUGnob+4RSK3DU5m83hqYsn/RiFIVKLYJniNOdx GerzLomAkiuTnBZmamsp/a5KcECNJTojM0aWN0MNEQsSPbNo5F9vPp4dBc5BE8fMlxu4 OaGA== Mime-Version: 1.0 X-Received: by 10.52.23.13 with SMTP id i13mr61049vdf.0.1389939134619; Thu, 16 Jan 2014 22:12:14 -0800 (PST) Received: by 10.220.86.65 with HTTP; Thu, 16 Jan 2014 22:12:14 -0800 (PST) In-Reply-To: References: Date: Fri, 17 Jan 2014 01:12:14 -0500 Message-Id: Subject: Re: nvi fails to when encountering 0xa9 character From: Zhihao Yuan To: Kevin Oberman Content-Type: text/plain; charset="UTF-8" X-Mailgun-Sid: WyIyZjNjMiIsICJzdGFibGVAZnJlZWJzZC5vcmciLCAiNjkxMTAiXQ== Sender: zy@miator.net Cc: FreeBSD Stable ML X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jan 2014 06:21:42 -0000 On Fri, Jan 17, 2014 at 1:04 AM, Kevin Oberman wrote: > When I edit a file containing the 0xa9/copyright/circle-c character. the > line that the character is on is rendered as ~. It is not editable. It > can't even e deleted. While nvi will allow stepping to the next line and > continuing to edit, searching past the line fails and writing out the file > truncated the file at the line. Unless a backup exists, the remainder of > the file is lost.Since that character is usually early in the file, most of > the file is lost. I don't know if other characters also trigger the problem. > > Is this a known issue? iconv related? It is VERY annoying! Fortunately I > did have a backup and I usually use emacs. Yes, and I do want to change its behavior. A workaround is invoke nvi with env LC_CTYPE=C nvi ... With "C" locale, nvi runs in plain old 8-bit mode. -- Zhihao Yuan, ID lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/