pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/50482: verifypc uses invalid ASCII literal in script



>Number:         50482
>Category:       pkg
>Synopsis:       verifypc uses invalid ASCII literal in script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 27 08:00:00 +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



Home | Main Index | Thread Index | Old Index