NetBSD Problem Report #50482

From www@NetBSD.org  Fri Nov 27 07:59:06 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C0A66A6562
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 27 Nov 2015 07:59:05 +0000 (UTC)
Message-Id: <20151127075904.84E76A65B7@mollari.NetBSD.org>
Date: Fri, 27 Nov 2015 07:59:04 +0000 (UTC)
From: richard@netbsd.org
Reply-To: richard@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: verifypc uses invalid ASCII literal in script
X-Send-Pr-Version: www-1.0

>Number:         50482
>Category:       pkg
>Synopsis:       verifypc uses invalid ASCII literal in script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jmmv
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 27 08:00:00 +0000 2015
>Last-Modified:  Fri Nov 27 09:46:57 +0000 2015
>Originator:     Richard PALO
>Release:        current
>Organization:
>Environment:
SunOS omnis 5.11 omnidev-0-gd664f8e i86pc i386 i86pc

>Description:
verifypc has the following sequence:

    lines=$(cat ${log} | sort | uniq | tr ' ' '')
    for l in ${lines}; do
        pcname=$(echo ${l} | cut -d '' -f 1)
        pcop=$(echo ${l} | cut -d '' -f 2)
        pcver=$(echo ${l} | cut -d '' -f 3)

this is rejected by solaris tr in UTF-8 locales because '' 
(or '\254' here) is an invalid UTF-8 sequence (which would be '\302\254')
>How-To-Repeat:
set to any UTF-8 locale and invoke verifypc after minimally a bmake configure in a pkgsrc package directory
>Fix:
Either the chosen delimiter '' should be changed to be something less than '\200' or perhaps the locale could simply be forced to C or POSIX

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jmmv
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 27 Nov 2015 09:46:57 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.