From owner-freebsd-standards@FreeBSD.ORG Mon Jul 27 19:30:04 2009 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 509F2106564A for ; Mon, 27 Jul 2009 19:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3E63C8FC15 for ; Mon, 27 Jul 2009 19:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6RJU3Dq005184 for ; Mon, 27 Jul 2009 19:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6RJU3VS005183; Mon, 27 Jul 2009 19:30:03 GMT (envelope-from gnats) Date: Mon, 27 Jul 2009 19:30:03 GMT Message-Id: <200907271930.n6RJU3VS005183@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Valentin Davydov Cc: Subject: Re: bin/25542: sh(1) null char in quoted string X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Valentin Davydov List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 19:30:04 -0000 The following reply was made to PR bin/25542; it has been noted by GNATS. From: Valentin Davydov To: bug-followup@FreeBSD.org, sp@m.davydov.spb.su Cc: Jilles Tjoelker Subject: Re: bin/25542: sh(1) null char in quoted string Date: Mon, 27 Jul 2009 22:50:54 +0400 (MSD) At Sat, 4 Apr 2009 14:41:43 +0200, Jilles Tjoelker wrote: >Considering that fixing this would be a lot of work and cannot be done >completely (for example, argument strings and environment variables >cannot contain '\0'), I think it is best to close this. I think, at least documentation issue mentioned in the original PR 25542 can be corrected easy. Here is the patch: --- src/bin/sh/sh.1.orig 2007-12-05 17:29:07.000000000 +0300 +++ src/bin/sh/sh.1 2009-07-27 22:36:39.000000000 +0400 @@ -2381,4 +2381,6 @@ .Sh BUGS The .Nm -utility does not recognize multibyte characters. +utility does not recognize multibyte characters. +ASCII character in input strings, parameters etc. can be mishandled by +.Nm .